File tree 3 files changed +9
-6
lines changed
3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 1
-
2
-
1
+ /Cargo.lock
3
2
/target /
Original file line number Diff line number Diff line change 3
3
name = " curl"
4
4
version = " 0.0.1"
5
5
authors = [
" Carl Lerche <[email protected] >" ]
6
+
7
+ [dependencies .url ]
8
+ git = " https://github.com/servo/rust-url"
Original file line number Diff line number Diff line change 1
- use std:: str ;
1
+ use std:: collections :: HashSet ;
2
2
use std:: io:: net:: ip:: Port ;
3
3
use std:: io:: net:: tcp:: { TcpListener , TcpStream } ;
4
- use std:: io:: { Acceptor , Listener } ;
5
4
use std:: io:: timer;
6
- use std:: collections:: HashSet ;
5
+ use std:: io:: { Acceptor , Listener } ;
6
+ use std:: str;
7
+ use std:: time:: Duration ;
7
8
8
9
// Global handle to the running test HTTP server
9
10
local_data_key ! ( handle: Handle )
@@ -115,7 +116,7 @@ impl OpSequence {
115
116
to_debug_str( b. as_slice( ) ) , to_debug_str( act. as_slice( ) ) ) ) ;
116
117
}
117
118
}
118
- & Wait ( ms) => { timer:: sleep ( ms as u64 ) }
119
+ & Wait ( ms) => { timer:: sleep ( Duration :: milliseconds ( ms as i32 ) ) }
119
120
& Shutdown => return Err ( "Shutdown must be sent on its own" . to_string ( ) )
120
121
}
121
122
}
You can’t perform that action at this time.
0 commit comments