Skip to content

Commit ae288df

Browse files
committed
Convenience funcs for some_option.unwrap_or(...)
This ensures consistent handling of default values for options that are None if not specified on the command line.
1 parent 3043a7b commit ae288df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/driver.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ impl rustc_driver::Callbacks for ClippyCallbacks {
8585
// run on the unoptimized MIR. On the other hand this results in some false negatives. If
8686
// MIR passes can be enabled / disabled separately, we should figure out, what passes to
8787
// use for Clippy.
88-
config.opts.debugging_opts.mir_opt_level = Some(0);
88+
config.opts.debugging_opts.mir_opt_level = 0;
8989
}
9090
}
9191

0 commit comments

Comments
 (0)