From 5e28aa9d4cec24d181bff7857a984c3e128b01bd Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Fri, 30 Jul 2021 23:08:37 +0300 Subject: [PATCH] style: use default instead equal with option value --- migra_cli/src/config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migra_cli/src/config.rs b/migra_cli/src/config.rs index 1b73bed..479c9e4 100644 --- a/migra_cli/src/config.rs +++ b/migra_cli/src/config.rs @@ -50,7 +50,7 @@ fn is_sqlite_database_file(filename: &str) -> bool { .rsplit('.') .next() .map(|ext| ext.eq_ignore_ascii_case("db")) - == Some(true) + .unwrap_or_default() } fn default_database_connection_env() -> String {