mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-22 16:09:27 +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> {
|
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
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user