Fix errors when compiling node-template (#4115)

This commit is contained in:
Yuanchao Sun
2019-11-18 20:18:10 +08:00
committed by Bastian Köcher
parent 9e85e21993
commit 0d658ab286
2 changed files with 2 additions and 2 deletions
@@ -88,7 +88,7 @@ fn replace_path_dependencies_with_git(cargo_toml_path: &Path, commit_id: &str, c
// remove `Cargo.toml`
cargo_toml_path.pop();
for table in &["dependencies", "build-dependencies"] {
for &table in &["dependencies", "build-dependencies"] {
let mut dependencies: toml::value::Table = match cargo_toml
.remove(table)
.and_then(|v| v.try_into().ok()) {