syntactic changes: remove unneeded paths when the type is already imported

This commit is contained in:
Jorge López
2025-01-18 18:29:12 +01:00
parent a48c9033e2
commit 86a4714711
26 changed files with 263 additions and 292 deletions

View File

@@ -391,7 +391,7 @@ mod tests {
// threshold is 1000 by default
fn insert(i: usize, conn: &Rc<Connection>, tmp_db: &TempDatabase) -> anyhow::Result<()> {
log::debug!("inserting {}", i);
debug!("inserting {}", i);
let insert_query = format!("INSERT INTO test VALUES ({})", i);
match conn.query(insert_query) {
Ok(Some(ref mut rows)) => loop {
@@ -408,13 +408,13 @@ mod tests {
eprintln!("{}", err);
}
};
log::debug!("inserted {}", i);
debug!("inserted {}", i);
tmp_db.io.run_once()?;
Ok(())
}
fn count(conn: &Rc<Connection>, tmp_db: &TempDatabase) -> anyhow::Result<usize> {
log::debug!("counting");
debug!("counting");
let list_query = "SELECT count(x) FROM test";
loop {
if let Some(ref mut rows) = conn.query(list_query).unwrap() {
@@ -426,7 +426,7 @@ mod tests {
Value::Integer(i) => *i as i32,
_ => unreachable!(),
};
log::debug!("counted {}", count);
debug!("counted {}", count);
return Ok(count as usize);
}
StepResult::IO => {