mirror of
https://github.com/agersant/polaris
synced 2024-11-14 11:27:07 +00:00
Clippy suggestions
This commit is contained in:
parent
ee432a106d
commit
b72517995d
2 changed files with 1 additions and 2 deletions
|
@ -502,7 +502,6 @@ where
|
|||
.filter_map(|s| virtualize_directory(&vfs, s));
|
||||
output.extend(
|
||||
virtual_directories
|
||||
.into_iter()
|
||||
.map(CollectionFile::Directory),
|
||||
);
|
||||
} else {
|
||||
|
|
|
@ -140,7 +140,7 @@ fn init_log(log_level: LevelFilter, options: &getopts::Matches) -> Result<()> {
|
|||
|
||||
#[cfg(windows)]
|
||||
fn init_log(log_level: LevelFilter, _: &getopts::Matches) -> Result<()> {
|
||||
if let Err(_) = TermLogger::init(log_level, LOG_CONFIG) {
|
||||
if TermLogger::init(log_level, LOG_CONFIG).is_err() {
|
||||
if let Err(e) = SimpleLogger::init(log_level, LOG_CONFIG) {
|
||||
bail!("Error starting simple logger: {}", e);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue