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> {
if let Some(s) = original_item_name.strip_prefix("sqlite3_index_info_") {
Some(s.to_owned())
} else {
None
}
original_item_name
.strip_prefix("sqlite3_index_info_")
.map(|s| s.to_owned())
}
}