File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ description = "a sub-crate for the sh function, formerly in duct"
6
6
repository = " https://github.com/oconnor663/duct.rs/tree/master/duct_sh"
7
7
documentation = " https://docs.rs/duct_sh"
8
8
license = " MIT"
9
+ edition = " 2021"
9
10
10
11
[dependencies ]
11
12
duct = { path = " ../" , version = " 0.13" }
Original file line number Diff line number Diff line change @@ -136,15 +136,17 @@ fn shell_command_argv(command: OsString) -> Vec<OsString> {
136
136
137
137
#[ cfg( test) ]
138
138
mod tests {
139
+ use super :: * ;
140
+
139
141
#[ test]
140
142
fn test_sh ( ) {
141
- let out = :: sh ( "echo hi" ) . read ( ) . unwrap ( ) ;
143
+ let out = sh ( "echo hi" ) . read ( ) . unwrap ( ) ;
142
144
assert_eq ! ( "hi" , out) ;
143
145
}
144
146
145
147
#[ test]
146
148
fn test_sh_dangerous ( ) {
147
- let out = :: sh_dangerous ( "echo hi" . to_owned ( ) ) . read ( ) . unwrap ( ) ;
149
+ let out = sh_dangerous ( "echo hi" . to_owned ( ) ) . read ( ) . unwrap ( ) ;
148
150
assert_eq ! ( "hi" , out) ;
149
151
}
150
152
}
You can’t perform that action at this time.
0 commit comments