From d253893614797206f684da30694678fde2b51274 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Fri, 30 Apr 2021 15:37:39 +0200 Subject: [PATCH] Cleanup clippy warnings Enable clippy::missing_errors_doc warning: docs for function returning `Result` missing `# Errors` section --> src/main.rs:164:5 | 164 | / pub fn run(mut self) -> io::Result { 165 | | debug!("Running with options: {:#?}", self.options); 166 | | 167 | | let mut files = Vec::new(); ... | 202 | | self.print_dirs(dirs, no_files, is_only_dir, exit_status) 203 | | } | |_____^ | --- src/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.rs b/src/main.rs index 4d762b5..116062a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -155,6 +155,9 @@ fn git_options(options: &Options, args: &[&OsStr]) -> Option { } impl<'args> Exa<'args> { + /// # Errors + /// + /// Will return `Err` if printing to stderr fails. pub fn run(mut self) -> io::Result { debug!("Running with options: {:#?}", self.options);