mirror of
https://github.com/Noratrieb/cargo-minimize.git
synced 2026-01-14 16:35:01 +01:00
Allow specifying NOT-passes on the command line
This commit is contained in:
parent
d023307d8d
commit
2efee491b5
3 changed files with 34 additions and 10 deletions
|
|
@ -18,7 +18,7 @@ const PASS_NAME: &str = "delete-unused-functions";
|
|||
|
||||
impl Minimizer {
|
||||
pub fn delete_dead_code(&mut self) -> Result<()> {
|
||||
if self.pass_disabled(PASS_NAME) {
|
||||
if !self.pass_enabled(PASS_NAME) {
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue