diff --git a/src/cargo/core/features.rs b/src/cargo/core/features.rs index ec179eb6bd2..24b9fdd0c11 100644 --- a/src/cargo/core/features.rs +++ b/src/cargo/core/features.rs @@ -426,7 +426,7 @@ impl CliUnstable { bail!("flag -Z{} does not take a value, found: `{}`", key, v); } Ok(true) - }; + } fn parse_usize_opt(value: Option<&str>) -> CargoResult> { Ok(match value { diff --git a/src/cargo/core/workspace.rs b/src/cargo/core/workspace.rs index 75fb598da8d..3c083d1aeff 100644 --- a/src/cargo/core/workspace.rs +++ b/src/cargo/core/workspace.rs @@ -445,7 +445,7 @@ impl<'cfg> Workspace<'cfg> { .join("Cargo.toml"); debug!("find_root - pointer {}", path.display()); Ok(paths::normalize_path(&path)) - }; + } { let current = self.packages.load(manifest_path)?;