Fix clippy warnings

This commit is contained in:
gwenn 2023-03-25 10:34:47 +01:00
parent eb7fbc57d0
commit 420bf08489

View File

@ -498,11 +498,9 @@ mod bindings {
} }
} }
fn item_name(&self, original_item_name: &str) -> Option<String> { fn item_name(&self, original_item_name: &str) -> Option<String> {
if let Some(s) = original_item_name.strip_prefix("sqlite3_index_info_") { original_item_name
Some(s.to_owned()) .strip_prefix("sqlite3_index_info_")
} else { .map(|s| s.to_owned())
None
}
} }
} }