File tree 3 files changed +6
-3
lines changed
3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ cfg_if! {
13
13
14
14
cfg_if ! {
15
15
if #[ cfg( unix) ] {
16
- mod flock ;
17
- pub use self :: flock :: * ;
16
+ mod unix ;
17
+ pub use self :: unix :: * ;
18
18
}
19
19
}
20
20
File renamed without changes.
Original file line number Diff line number Diff line change @@ -77,11 +77,12 @@ fn handle_relative_walk_entries_hashset(handle: &Handle) -> HashSet<WalkEntry> {
77
77
. expect ( "should be able to walk handle dir" )
78
78
. into_iter ( )
79
79
. map ( |mut entry : WalkEntry | {
80
- entry . path = entry
80
+ let suffix = entry
81
81
. path
82
82
. strip_prefix ( handle. dir ( ) )
83
83
. expect ( "walk entry should have handle dir path prefix" )
84
84
. to_owned ( ) ;
85
+ suffix. clone_into ( & mut entry. path ) ;
85
86
entry
86
87
} )
87
88
. collect ( )
@@ -525,6 +526,8 @@ fn test_writeback_mmap() -> anyhow::Result<()> {
525
526
let mut file = OpenOptions :: new ( )
526
527
. write ( true )
527
528
. create ( true )
529
+ // Don't truncate because we're about to it anyway.
530
+ . truncate ( false )
528
531
. open ( "writeback" ) ?;
529
532
file. set_len ( 0x1000 ) ?;
530
533
let read_file = OpenOptions :: new ( ) . read ( true ) . open ( "writeback" ) ?;
You can’t perform that action at this time.
0 commit comments