Show multiple clippy.toml warnings with sess.warn instead of eprintln!

This commit is contained in:
bhould287 2023-04-01 21:30:39 +01:00
parent e903af506f
commit afdfbf8fde
No known key found for this signature in database
GPG key ID: F57D90F0DC82CCD4
4 changed files with 24 additions and 17 deletions

View file

@ -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