diff --git a/clippy_lints/src/utils/conf.rs b/clippy_lints/src/utils/conf.rs index deef05f4ef9..772f7f6ad45 100644 --- a/clippy_lints/src/utils/conf.rs +++ b/clippy_lints/src/utils/conf.rs @@ -204,6 +204,9 @@ pub fn lookup_conf_file() -> io::Result> { } } +/// Produces a `Conf` filled with the default values and forwards the errors +/// +/// Used internally for convenience fn default(errors: Vec) -> (Conf, Vec) { (toml::from_str("").expect("we never error on empty config files"), errors) }