mirror of
https://github.com/agersant/polaris
synced 2024-11-14 19:37:05 +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));
|
.filter_map(|s| virtualize_directory(&vfs, s));
|
||||||
output.extend(
|
output.extend(
|
||||||
virtual_directories
|
virtual_directories
|
||||||
.into_iter()
|
|
||||||
.map(CollectionFile::Directory),
|
.map(CollectionFile::Directory),
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -140,7 +140,7 @@ fn init_log(log_level: LevelFilter, options: &getopts::Matches) -> Result<()> {
|
||||||
|
|
||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
fn init_log(log_level: LevelFilter, _: &getopts::Matches) -> Result<()> {
|
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) {
|
if let Err(e) = SimpleLogger::init(log_level, LOG_CONFIG) {
|
||||||
bail!("Error starting simple logger: {}", e);
|
bail!("Error starting simple logger: {}", e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue