Skip to content

Commit d626218

Browse files
committed
Comments
1 parent 3ee4104 commit d626218

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/tools/tidy/src/deps.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ static EXCEPTIONS: &'static [&'static str] = &[
5151
// Whitelist of crates rustc is allowed to depend on. Avoid adding to the list if possible.
5252
static WHITELIST: &'static [(&'static str, &'static str)] = &[];
5353

54-
// Some type for Serde to deserialize the output of `cargo metadata` to...
54+
// Some types for Serde to deserialize the output of `cargo metadata` to...
5555

5656
#[derive(Deserialize)]
5757
struct Output {
@@ -151,6 +151,7 @@ fn extract_license(line: &str) -> String {
151151
}
152152
}
153153

154+
/// Get the dependencies of the crate at the given path using `cargo metadata`.
154155
fn get_deps(path: &Path) -> Vec<Package> {
155156
// Run `cargo metadata` to get the set of dependencies
156157
let output = Command::new("cargo")

0 commit comments

Comments
 (0)