From d2dab198fa85a3f42f33ba4786a66cd8774d55cd Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Tue, 9 May 2017 16:02:48 +0200 Subject: [PATCH] Forgot doc comments --- clippy_lints/src/utils/conf.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/clippy_lints/src/utils/conf.rs b/clippy_lints/src/utils/conf.rs index deef05f4e..772f7f6ad 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) }