mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-21 21:09:23 +08:00
Fix clippy warnings
This commit is contained in:
parent
eb7fbc57d0
commit
420bf08489
@ -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())
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user