File tree 3 files changed +8
-9
lines changed
3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -20,10 +20,10 @@ log = "0.4"
20
20
git2 = { path = " .." , version = " 0.7" , default-features = false }
21
21
22
22
[dev-dependencies ]
23
- civet = " 0.8 "
24
- conduit = " 0.7 "
25
- conduit-git-http-backend = " 0.7 "
26
- tempdir = " 0.3 "
23
+ civet = " 0.9 "
24
+ conduit = " 0.8 "
25
+ conduit-git-http-backend = " 0.8 "
26
+ tempfile = " 3.0 "
27
27
28
28
[[test ]]
29
29
name = " all"
Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ extern crate curl;
22
22
extern crate url;
23
23
#[ macro_use] extern crate log;
24
24
25
- use std:: ascii:: AsciiExt ;
26
25
use std:: error;
27
26
use std:: io:: prelude:: * ;
28
27
use std:: io:: { self , Cursor } ;
Original file line number Diff line number Diff line change @@ -4,12 +4,12 @@ extern crate civet;
4
4
extern crate conduit;
5
5
extern crate curl;
6
6
extern crate git2;
7
- extern crate tempdir ;
7
+ extern crate tempfile ;
8
8
9
9
use civet:: { Server , Config } ;
10
10
use std:: fs:: File ;
11
11
use std:: path:: Path ;
12
- use tempdir :: TempDir ;
12
+ use tempfile :: TempDir ;
13
13
14
14
const PORT : u16 = 7848 ;
15
15
@@ -19,7 +19,7 @@ fn main() {
19
19
}
20
20
21
21
// Spin up a server for git-http-backend
22
- let td = TempDir :: new ( "wut" ) . unwrap ( ) ;
22
+ let td = TempDir :: new ( ) . unwrap ( ) ;
23
23
let mut cfg = Config :: new ( ) ;
24
24
cfg. port ( PORT ) . threads ( 1 ) ;
25
25
let _a = Server :: start ( cfg, git_backend:: Serve ( td. path ( ) . to_path_buf ( ) ) ) ;
@@ -40,7 +40,7 @@ fn main() {
40
40
}
41
41
42
42
// Clone through the git-http-backend
43
- let td2 = TempDir :: new ( "wut2" ) . unwrap ( ) ;
43
+ let td2 = TempDir :: new ( ) . unwrap ( ) ;
44
44
let r = git2:: Repository :: clone ( & format ! ( "http://localhost:{}" , PORT ) ,
45
45
td2. path ( ) ) . unwrap ( ) ;
46
46
assert ! ( File :: open( & td2. path( ) . join( "foo" ) ) . is_ok( ) ) ;
You can’t perform that action at this time.
0 commit comments