Clippy suggestions

This commit is contained in:
Antoine Gersant 2018-10-27 10:43:18 -07:00
parent ee432a106d
commit b72517995d
2 changed files with 1 additions and 2 deletions

View file

@ -502,7 +502,6 @@ where
.filter_map(|s| virtualize_directory(&vfs, s));
output.extend(
virtual_directories
.into_iter()
.map(CollectionFile::Directory),
);
} else {

View file

@ -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);
}