mirror of
				https://github.com/isar/rusqlite.git
				synced 2025-10-31 05:48:56 +08:00 
			
		
		
		
	Rustfmt
This commit is contained in:
		| @@ -713,10 +713,13 @@ mod test { | ||||
|         }) | ||||
|         .unwrap(); | ||||
|  | ||||
|         let res: bool = db.query_row( | ||||
|             "SELECT example(0, i) FROM (SELECT 0 as i UNION SELECT 1)", | ||||
|             NO_PARAMS, | ||||
|             |r| r.get(0)).unwrap(); | ||||
|         let res: bool = db | ||||
|             .query_row( | ||||
|                 "SELECT example(0, i) FROM (SELECT 0 as i UNION SELECT 1)", | ||||
|                 NO_PARAMS, | ||||
|                 |r| r.get(0), | ||||
|             ) | ||||
|             .unwrap(); | ||||
|         // Doesn't actually matter, we'll assert in the function if there's a problem. | ||||
|         assert!(res); | ||||
|     } | ||||
|   | ||||
| @@ -196,7 +196,12 @@ pub enum DatabaseName<'a> { | ||||
|  | ||||
| // Currently DatabaseName is only used by the backup and blob mods, so hide | ||||
| // this (private) impl to avoid dead code warnings. | ||||
| #[cfg(any(feature = "backup", feature = "blob", feature = "session", feature = "bundled"))] | ||||
| #[cfg(any( | ||||
|     feature = "backup", | ||||
|     feature = "blob", | ||||
|     feature = "session", | ||||
|     feature = "bundled" | ||||
| ))] | ||||
| impl<'a> DatabaseName<'a> { | ||||
|     fn to_cstring(&self) -> Result<CString> { | ||||
|         use self::DatabaseName::{Attached, Main, Temp}; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user