Fix errors when compiling node-template (#4115)

This commit is contained in:
Yuanchao Sun authored and Bastian Köcher committed 2019-11-18 13:18:10 +01:00
1 parent 9e85e21993
commit 0d658ab286
2 files changed
+2 -2

No files matched your search

@@ -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()) {