mirror of
				https://github.com/isar/rusqlite.git
				synced 2025-10-31 22:08:55 +08:00 
			
		
		
		
	Fix CI build error
stable clippy vs nightly clippy
This commit is contained in:
		| @@ -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") | ||||
|             }) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user