mirror of
				https://github.com/isar/rusqlite.git
				synced 2025-10-31 05:48:56 +08:00 
			
		
		
		
	Rustfmt + clippy
This commit is contained in:
		| @@ -122,11 +122,7 @@ mod test { | ||||
|         let column_types: Vec<Option<&str>> = columns.iter().map(Column::decl_type).collect(); | ||||
|         assert_eq!( | ||||
|             &column_types[..3], | ||||
|             &[ | ||||
|                 Some("text"), | ||||
|                 Some("text"), | ||||
|                 Some("text"), | ||||
|             ] | ||||
|             &[Some("text"), Some("text"), Some("text"),] | ||||
|         ); | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -39,7 +39,7 @@ impl<'stmt> Rows<'stmt> { | ||||
|     where | ||||
|         F: FnMut(&Row<'_>) -> Result<B>, | ||||
|     { | ||||
|         Map { rows: self, f: f } | ||||
|         Map { rows: self, f } | ||||
|     } | ||||
| } | ||||
|  | ||||
|   | ||||
| @@ -225,7 +225,7 @@ mod test { | ||||
|     } | ||||
|  | ||||
|     #[test] | ||||
|     #[allow(clippy::cyclomatic_complexity)] | ||||
|     #[allow(clippy::cognitive_complexity)] | ||||
|     fn test_mismatched_types() { | ||||
|         fn is_invalid_column_type(err: Error) -> bool { | ||||
|             match err { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user