Run ./util/dev fmt
This commit is contained in:
parent
5f4b5b91d7
commit
ef02e3a755
3 changed files with 7 additions and 7 deletions
|
@ -67,7 +67,7 @@ fn main() {
|
||||||
match matches.subcommand() {
|
match matches.subcommand() {
|
||||||
("fmt", Some(matches)) => {
|
("fmt", Some(matches)) => {
|
||||||
fmt::run(matches.is_present("check"), matches.is_present("verbose"));
|
fmt::run(matches.is_present("check"), matches.is_present("verbose"));
|
||||||
}
|
},
|
||||||
("update_lints", Some(matches)) => {
|
("update_lints", Some(matches)) => {
|
||||||
if matches.is_present("print-only") {
|
if matches.is_present("print-only") {
|
||||||
print_lints();
|
print_lints();
|
||||||
|
@ -76,8 +76,8 @@ fn main() {
|
||||||
} else {
|
} else {
|
||||||
update_lints(&UpdateMode::Change);
|
update_lints(&UpdateMode::Change);
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
_ => {}
|
_ => {},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -332,7 +332,7 @@ pub fn read_conf(args: &[syntax::ast::NestedMetaItem], sess: &Session) -> Conf {
|
||||||
sess.struct_err(&format!("error finding Clippy's configuration file: {}", error))
|
sess.struct_err(&format!("error finding Clippy's configuration file: {}", error))
|
||||||
.emit();
|
.emit();
|
||||||
None
|
None
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -361,13 +361,13 @@ pub fn read_conf(args: &[syntax::ast::NestedMetaItem], sess: &Session) -> Conf {
|
||||||
}
|
}
|
||||||
|
|
||||||
conf
|
conf
|
||||||
}
|
},
|
||||||
Err((err, span)) => {
|
Err((err, span)) => {
|
||||||
sess.struct_span_err(span, err)
|
sess.struct_span_err(span, err)
|
||||||
.span_note(span, "Clippy will use default configuration")
|
.span_note(span, "Clippy will use default configuration")
|
||||||
.emit();
|
.emit();
|
||||||
toml::from_str("").expect("we never error on empty config files")
|
toml::from_str("").expect("we never error on empty config files")
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -160,7 +160,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for TriviallyCopyPassByRef {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
FnKind::Method(..) => (),
|
FnKind::Method(..) => (),
|
||||||
_ => return,
|
_ => return,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue