File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -247,7 +247,7 @@ impl KVStore for FilesystemStore {
247
247
// However, all this is partially based on assumptions and local experiments, as
248
248
// Windows API is horribly underdocumented.
249
249
let mut trash_file_path = dest_file_path. clone ( ) ;
250
- let trash_file_ext = format ! ( "{}.trash.tmp " ,
250
+ let trash_file_ext = format ! ( "{}.trash" ,
251
251
self . tmp_file_counter. fetch_add( 1 , Ordering :: AcqRel ) ) ;
252
252
trash_file_path. set_extension ( trash_file_ext) ;
253
253
@@ -303,7 +303,7 @@ impl KVStore for FilesystemStore {
303
303
#[ cfg( target_os = "windows" ) ]
304
304
{
305
305
// Clean up any trash files lying around.
306
- if ext == "trash.tmp " {
306
+ if ext == "trash" {
307
307
fs:: remove_file ( p) . ok ( ) ;
308
308
continue ;
309
309
}
You can’t perform that action at this time.
0 commit comments