mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-26 11:31:37 +08:00
Rustfmt
This commit is contained in:
parent
e65fd1e8e4
commit
9acc6f85f0
@ -165,10 +165,17 @@ mod test {
|
||||
column_names.as_slice(),
|
||||
&["type", "name", "tbl_name", "rootpage", "sql"]
|
||||
);
|
||||
let column_types: Vec<Option<String>> = columns.iter().map(|col| col.decl_type().map(str::to_lowercase)).collect();
|
||||
let column_types: Vec<Option<String>> = columns
|
||||
.iter()
|
||||
.map(|col| col.decl_type().map(str::to_lowercase))
|
||||
.collect();
|
||||
assert_eq!(
|
||||
&column_types[..3],
|
||||
&[Some("text".to_owned()), Some("text".to_owned()), Some("text".to_owned()),]
|
||||
&[
|
||||
Some("text".to_owned()),
|
||||
Some("text".to_owned()),
|
||||
Some("text".to_owned()),
|
||||
]
|
||||
);
|
||||
Ok(())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user