mirror of
https://github.com/isar/rusqlite.git
synced 2026-02-19 17:29:12 +08:00
Clippy
This commit is contained in:
@@ -212,7 +212,7 @@ mod test {
|
||||
let mut v = vec![];
|
||||
for i in 0..1000 {
|
||||
v.push(SqliteMallocString::from_str(&i.to_string()).into_raw());
|
||||
v.push(SqliteMallocString::from_str(&format!("abc {} 😀", i)).into_raw());
|
||||
v.push(SqliteMallocString::from_str(&format!("abc {i} 😀")).into_raw());
|
||||
}
|
||||
unsafe {
|
||||
for (i, s) in v.chunks_mut(2).enumerate() {
|
||||
@@ -224,7 +224,7 @@ mod test {
|
||||
);
|
||||
assert_eq!(
|
||||
std::ffi::CStr::from_ptr(s1).to_str().unwrap(),
|
||||
&format!("abc {} 😀", i)
|
||||
&format!("abc {i} 😀")
|
||||
);
|
||||
let _ = SqliteMallocString::from_raw(s0).unwrap();
|
||||
let _ = SqliteMallocString::from_raw(s1).unwrap();
|
||||
|
||||
Reference in New Issue
Block a user