Show multiple clippy.toml warnings with sess.warn instead of eprintln!
This commit is contained in:
parent
e903af506f
commit
afdfbf8fde
4 changed files with 24 additions and 17 deletions
|
|
@ -130,7 +130,7 @@ impl rustc_driver::Callbacks for ClippyCallbacks {
|
|||
#[allow(rustc::bad_opt_access)]
|
||||
fn config(&mut self, config: &mut interface::Config) {
|
||||
let conf_path = clippy_lints::lookup_conf_file();
|
||||
let conf_path_string = if let Ok(Some(path)) = &conf_path {
|
||||
let conf_path_string = if let Ok((Some(path), _)) = &conf_path {
|
||||
path.to_str().map(String::from)
|
||||
} else {
|
||||
None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue