From ea0b5ca9dc315e5a4ea32a5bb059b2c44ddf365f Mon Sep 17 00:00:00 2001 From: Aaron Hill Date: Fri, 27 Nov 2020 08:46:12 -0500 Subject: [PATCH] Remove unnecessary trailing semicolons PR https://github.com/rust-lang/rust/pull/78296 will cause rustc to start warning on semicolons following item statements. --- src/cargo/core/features.rs | 2 +- src/cargo/core/workspace.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)?;