@@ -11,11 +11,11 @@ use std::sync::{Arc, Mutex};
11
11
12
12
use rand:: { thread_rng, Rng } ;
13
13
14
- pub mod argsource;
15
- pub mod cwdsource;
16
- pub mod filesource;
14
+ pub ( crate ) mod argsource;
15
+ pub ( crate ) mod cwdsource;
16
+ pub ( crate ) mod filesource;
17
17
mod homethunk;
18
- pub mod varsource;
18
+ pub ( crate ) mod varsource;
19
19
20
20
use argsource:: * ;
21
21
use cwdsource:: * ;
@@ -121,7 +121,7 @@ pub fn process() -> Box<dyn CurrentProcess> {
121
121
}
122
122
123
123
/// Obtain the current instance of HomeProcess
124
- pub fn home_process ( ) -> Box < dyn HomeProcess > {
124
+ pub ( crate ) fn home_process ( ) -> Box < dyn HomeProcess > {
125
125
match PROCESS . with ( |p| p. borrow ( ) . clone ( ) ) {
126
126
None => panic ! ( "No process instance" ) ,
127
127
Some ( p) => p,
@@ -163,7 +163,7 @@ fn clear_process() {
163
163
}
164
164
165
165
thread_local ! {
166
- pub static PROCESS : RefCell <Option <Box <dyn HomeProcess >>> = RefCell :: new( None ) ;
166
+ pub ( crate ) static PROCESS : RefCell <Option <Box <dyn HomeProcess >>> = RefCell :: new( None ) ;
167
167
}
168
168
169
169
// PID related things
@@ -191,13 +191,13 @@ impl ProcessSource for OSProcess {
191
191
192
192
#[ derive( Clone , Debug , Default ) ]
193
193
pub struct TestProcess {
194
- pub cwd : PathBuf ,
195
- pub args : Vec < String > ,
196
- pub vars : HashMap < String , String > ,
197
- pub id : u64 ,
198
- pub stdin : TestStdinInner ,
199
- pub stdout : TestWriterInner ,
200
- pub stderr : TestWriterInner ,
194
+ pub ( crate ) cwd : PathBuf ,
195
+ pub ( crate ) args : Vec < String > ,
196
+ pub ( crate ) vars : HashMap < String , String > ,
197
+ pub ( crate ) id : u64 ,
198
+ pub ( crate ) stdin : TestStdinInner ,
199
+ pub ( crate ) stdout : TestWriterInner ,
200
+ pub ( crate ) stderr : TestWriterInner ,
201
201
}
202
202
203
203
impl TestProcess {
0 commit comments