Resolve a drop_copy lint warning

This commit is contained in:
Dale Wijnand 2018-08-13 10:41:19 +01:00
parent 11922d099b
commit 0c89a748d1
No known key found for this signature in database
GPG key ID: 4F256E3D151DF5EF

View file

@ -218,24 +218,22 @@ fn cargo_compile_offline_with_cached_git_dep() {
execs().with_stdout("hello from cached git repo rev2\n"),
);
drop(
File::create(&p.root().join("Cargo.toml"))
.unwrap()
.write_all(&format!(
r#"
[project]
name = "foo"
version = "0.5.0"
File::create(&p.root().join("Cargo.toml"))
.unwrap()
.write_all(&format!(
r#"
[project]
name = "foo"
version = "0.5.0"
[dependencies.dep1]
git = '{}'
rev = "{}"
[dependencies.dep1]
git = '{}'
rev = "{}"
"#,
git_project.url(),
rev1
).as_bytes())
.unwrap(),
);
git_project.url(),
rev1
).as_bytes())
.unwrap();
let _out = p
.cargo("build")