mirror of
https://github.com/isar/rusqlite.git
synced 2025-03-31 19:12:58 +08:00
clippy::manual_string_new
This commit is contained in:
parent
c5e67dfe91
commit
9189b54fc7
@ -158,7 +158,7 @@ mod test {
|
||||
assert_eq!(Value::Null.data_type(), Type::Null);
|
||||
assert_eq!(Value::Integer(0).data_type(), Type::Integer);
|
||||
assert_eq!(Value::Real(0.).data_type(), Type::Real);
|
||||
assert_eq!(Value::Text("".to_owned()).data_type(), Type::Text);
|
||||
assert_eq!(Value::Text(String::new()).data_type(), Type::Text);
|
||||
assert_eq!(Value::Blob(vec![]).data_type(), Type::Blob);
|
||||
}
|
||||
}
|
||||
|
@ -98,7 +98,7 @@ unsafe impl<'vtab> VTab<'vtab> for CsvTab {
|
||||
|
||||
let mut vtab = Self {
|
||||
base: ffi::sqlite3_vtab::default(),
|
||||
filename: "".to_owned(),
|
||||
filename: String::new(),
|
||||
has_headers: false,
|
||||
delimiter: b',',
|
||||
quote: b'"',
|
||||
|
Loading…
x
Reference in New Issue
Block a user