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<i32> {
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 | |     }
    | |_____^
    |
This commit is contained in:
Christian Göttsche 2021-04-30 15:37:39 +02:00
parent 61ec153bcd
commit d253893614

View File

@ -155,6 +155,9 @@ fn git_options(options: &Options, args: &[&OsStr]) -> Option<GitCache> {
} }
impl<'args> Exa<'args> { impl<'args> Exa<'args> {
/// # Errors
///
/// Will return `Err` if printing to stderr fails.
pub fn run(mut self) -> io::Result<i32> { pub fn run(mut self) -> io::Result<i32> {
debug!("Running with options: {:#?}", self.options); debug!("Running with options: {:#?}", self.options);