File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
//! Support for functional tests.
2
2
3
+ #[ cfg( windows) ]
3
4
use std:: { io, sync:: Mutex } ;
4
5
5
6
#[ cfg( windows) ]
@@ -9,7 +10,8 @@ use winreg::{
9
10
} ;
10
11
11
12
/// Support testing of code that mutates global state
12
- pub fn with_saved_global_state < S > (
13
+ #[ cfg( windows) ]
14
+ fn with_saved_global_state < S > (
13
15
getter : impl Fn ( ) -> io:: Result < S > ,
14
16
setter : impl Fn ( S ) ,
15
17
f : & mut dyn FnMut ( ) ,
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ use std::process::Command;
15
15
#[ cfg( test) ]
16
16
use anyhow:: Result ;
17
17
18
- pub use crate :: cli:: self_update:: test:: { with_saved_global_state , with_saved_path} ;
18
+ pub use crate :: cli:: self_update:: test:: with_saved_path;
19
19
use crate :: currentprocess:: TestProcess ;
20
20
use crate :: dist:: TargetTriple ;
21
21
You can’t perform that action at this time.
0 commit comments