Skip to content

Commit 6216179

Browse files
committed
remove unnecessary usage of current_opt
1 parent 1e0c29c commit 6216179

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/cargo/ops/cargo_rustc/context.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -836,9 +836,7 @@ impl<'a, 'cfg> Context<'a, 'cfg> {
836836
}
837837

838838
pub fn show_warnings(&self, pkg: &PackageId) -> bool {
839-
self.ws.current_opt().map_or(false, |p| *pkg == *p.package_id())
840-
|| pkg.source_id().is_path()
841-
|| self.config.extra_verbose()
839+
pkg.source_id().is_path() || self.config.extra_verbose()
842840
}
843841
}
844842

0 commit comments

Comments
 (0)