add todos, adjust some context messages

This commit is contained in:
steven-omaha
2023-01-30 16:55:45 +01:00
parent 8c2db88ba6
commit 1a4bb58814
2 changed files with 5 additions and 2 deletions
+3 -2
View File
@@ -24,8 +24,9 @@ impl Backend for Rust {
fn get_all_installed_packages(&self) -> Result<HashSet<Package>> {
let file = get_crates_file().context("getting path to crates file")?;
let content = read_to_string(file).context("reading crates file")?;
let json: Value = serde_json::from_str(&content).context("parsing JSON")?;
extract_packages(json).context("extracing packages from JSON")
let json: Value =
serde_json::from_str(&content).context("parsing JSON from crates file")?;
extract_packages(json).context("extracing packages from crates file")
}
fn get_explicitly_installed_packages(&self) -> Result<HashSet<Package>> {