Skip to content

Commit ea541ba

Browse files
committed
Auto merge of #8906 - Aaron1011:fix/trailing-semi, r=alexcrichton
Remove unnecessary trailing semicolons PR rust-lang/rust#78296 will cause rustc to start warning on semicolons following item statements.
2 parents 502ced2 + ea0b5ca commit ea541ba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/cargo/core/features.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ impl CliUnstable {
426426
bail!("flag -Z{} does not take a value, found: `{}`", key, v);
427427
}
428428
Ok(true)
429-
};
429+
}
430430

431431
fn parse_usize_opt(value: Option<&str>) -> CargoResult<Option<usize>> {
432432
Ok(match value {

src/cargo/core/workspace.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ impl<'cfg> Workspace<'cfg> {
445445
.join("Cargo.toml");
446446
debug!("find_root - pointer {}", path.display());
447447
Ok(paths::normalize_path(&path))
448-
};
448+
}
449449

450450
{
451451
let current = self.packages.load(manifest_path)?;

0 commit comments

Comments
 (0)