update crate and deps section

This commit is contained in:
Milo 2021-06-19 09:44:11 +01:00
parent d8209e6378
commit 673933e2f7

View file

@ -61,13 +61,13 @@ pub(crate) fn status(db: &RootDatabase, file_id: Option<FileId>) -> String {
Some(it) => format!("{}({:?})", it, krate),
None => format!("{:?}", krate),
};
format_to!(buf, "crate: {}\n", display_crate(krate));
format_to!(buf, "Crate: {}\n", display_crate(krate));
let deps = crate_graph[krate]
.dependencies
.iter()
.map(|dep| format!("{}={:?}", dep.name, dep.crate_id))
.format(", ");
format_to!(buf, "deps: {}\n", deps);
format_to!(buf, "Dependencies: {}\n", deps);
}
None => format_to!(buf, "Does not belong to any crate"),
}