mirror of
https://github.com/rust-lang/cargo
synced 2024-10-01 21:43:45 +00:00
Resolve a drop_copy lint warning
This commit is contained in:
parent
11922d099b
commit
0c89a748d1
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue