logging refactor

This commit is contained in:
ripytide
2024-04-23 14:56:36 +01:00
parent 86880212c1
commit c290247c7a
9 changed files with 115 additions and 60 deletions
+1 -3
View File
@@ -47,9 +47,7 @@ impl Backend for Rust {
let content = match read_to_string(file) {
Ok(string) => string,
Err(err) if err.kind() == NotFound => {
eprintln!(
"WARNING: no crates file found for cargo. Assuming no crates installed yet."
);
log::warn!("no crates file found for cargo. Assuming no crates installed yet.");
return Ok(HashSet::new());
}
Err(err) => bail!(err),