File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ pub struct Flags {
36
36
// This overrides the deny-warnings configuation option,
37
37
// which passes -Dwarnings to the compiler invocations.
38
38
//
39
- // true => deny, false => allow
39
+ // true => deny, false => warn
40
40
pub deny_warnings : Option < bool > ,
41
41
}
42
42
@@ -556,10 +556,10 @@ fn split(s: &[String]) -> Vec<String> {
556
556
fn parse_deny_warnings ( matches : & getopts:: Matches ) -> Option < bool > {
557
557
match matches. opt_str ( "warnings" ) . as_ref ( ) . map ( |v| v. as_str ( ) ) {
558
558
Some ( "deny" ) => Some ( true ) ,
559
- Some ( "allow " ) => Some ( false ) ,
559
+ Some ( "warn " ) => Some ( false ) ,
560
560
Some ( value) => {
561
561
eprintln ! (
562
- r#"invalid value for --warnings: {:?}, expected "allow " or "deny""# ,
562
+ r#"invalid value for --warnings: {:?}, expected "warn " or "deny""# ,
563
563
value,
564
564
) ;
565
565
process:: exit ( 1 ) ;
You can’t perform that action at this time.
0 commit comments