clippy::manual_string_new

This commit is contained in:
gwenn 2024-08-10 15:09:26 +02:00
parent c5e67dfe91
commit 9189b54fc7
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}
}

View File

@ -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'"',