Fix clippy lint and disable broken lint (#3865)

This commit is contained in:
JT
2021-07-30 08:11:47 +12:00
committed by GitHub
parent 9696e4d315
commit e602647d4d
28 changed files with 52 additions and 52 deletions

View File

@ -121,9 +121,9 @@ impl App {
use logger::{configure, debug_filters, logger, trace_filters};
logger(|builder| {
configure(&self, builder)?;
trace_filters(&self, builder)?;
debug_filters(&self, builder)?;
configure(self, builder)?;
trace_filters(self, builder)?;
debug_filters(self, builder)?;
Ok(())
})?;
@ -298,7 +298,7 @@ impl App {
}
pub fn parse(&self, args: &str) -> Result<(), ShellError> {
self.parser.parse(&args).map(|options| {
self.parser.parse(args).map(|options| {
self.options.swap(&options);
})
}

View File

@ -111,7 +111,7 @@ impl OptionsParser for NuParser {
.flatten();
if let Some(value) = value {
options.put(&k, value);
options.put(k, value);
}
});
}