Skip to content

Commit 0b91911

Browse files
committed
Update deps
1 parent 88ea57a commit 0b91911

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

git2-curl/Cargo.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ log = "0.4"
2020
git2 = { path = "..", version = "0.7", default-features = false }
2121

2222
[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"
2727

2828
[[test]]
2929
name = "all"

git2-curl/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ extern crate curl;
2222
extern crate url;
2323
#[macro_use] extern crate log;
2424

25-
use std::ascii::AsciiExt;
2625
use std::error;
2726
use std::io::prelude::*;
2827
use std::io::{self, Cursor};

git2-curl/tests/all.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ extern crate civet;
44
extern crate conduit;
55
extern crate curl;
66
extern crate git2;
7-
extern crate tempdir;
7+
extern crate tempfile;
88

99
use civet::{Server, Config};
1010
use std::fs::File;
1111
use std::path::Path;
12-
use tempdir::TempDir;
12+
use tempfile::TempDir;
1313

1414
const PORT: u16 = 7848;
1515

@@ -19,7 +19,7 @@ fn main() {
1919
}
2020

2121
// Spin up a server for git-http-backend
22-
let td = TempDir::new("wut").unwrap();
22+
let td = TempDir::new().unwrap();
2323
let mut cfg = Config::new();
2424
cfg.port(PORT).threads(1);
2525
let _a = Server::start(cfg, git_backend::Serve(td.path().to_path_buf()));
@@ -40,7 +40,7 @@ fn main() {
4040
}
4141

4242
// Clone through the git-http-backend
43-
let td2 = TempDir::new("wut2").unwrap();
43+
let td2 = TempDir::new().unwrap();
4444
let r = git2::Repository::clone(&format!("http://localhost:{}", PORT),
4545
td2.path()).unwrap();
4646
assert!(File::open(&td2.path().join("foo")).is_ok());

0 commit comments

Comments
 (0)