mirror of
https://github.com/isar/rusqlite.git
synced 2025-02-01 06:00:51 +08:00
Fix CI build error
stable clippy vs nightly clippy
This commit is contained in:
parent
cd6ce6e2c3
commit
ba73b81776
@ -95,7 +95,8 @@ impl Statement<'_> {
|
||||
pub fn column_name(&self, col: usize) -> Result<&str> {
|
||||
self.stmt
|
||||
.column_name(col)
|
||||
.ok_or_else(|| Error::InvalidColumnIndex(col))
|
||||
// clippy::or_fun_call (nightly) vs clippy::unnecessary-lazy-evaluations (stable)
|
||||
.ok_or(Error::InvalidColumnIndex(col))
|
||||
.map(|slice| {
|
||||
str::from_utf8(slice.to_bytes()).expect("Invalid UTF-8 sequence in column name")
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user