Skip to content

Commit 2cb8c5f

Browse files
committed
Run rustfmt on tidy/src/deps.rs
1 parent e2746d8 commit 2cb8c5f

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

src/tools/tidy/src/deps.rs

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,19 @@ static LICENSES: &'static [&'static str] = &[
2929
// tooling. It is _crucial_ that no exception crates be dependencies
3030
// of the Rust runtime (std / test).
3131
static EXCEPTIONS: &'static [&'static str] = &[
32-
"mdbook", // MPL2, mdbook
33-
"openssl", // BSD+advertising clause, cargo, mdbook
34-
"pest", // MPL2, mdbook via handlebars
35-
"thread-id", // Apache-2.0, mdbook
36-
"toml-query", // MPL-2.0, mdbook
37-
"is-match", // MPL-2.0, mdbook
38-
"cssparser", // MPL-2.0, rustdoc
39-
"smallvec", // MPL-2.0, rustdoc
32+
"mdbook", // MPL2, mdbook
33+
"openssl", // BSD+advertising clause, cargo, mdbook
34+
"pest", // MPL2, mdbook via handlebars
35+
"thread-id", // Apache-2.0, mdbook
36+
"toml-query", // MPL-2.0, mdbook
37+
"is-match", // MPL-2.0, mdbook
38+
"cssparser", // MPL-2.0, rustdoc
39+
"smallvec", // MPL-2.0, rustdoc
4040
"fuchsia-zircon-sys", // BSD-3-Clause, rustdoc, rustc, cargo
41-
"fuchsia-zircon", // BSD-3-Clause, rustdoc, rustc, cargo (jobserver & tempdir)
42-
"cssparser-macros", // MPL-2.0, rustdoc
43-
"selectors", // MPL-2.0, rustdoc
44-
"clippy_lints", // MPL-2.0 rls
41+
"fuchsia-zircon", // BSD-3-Clause, rustdoc, rustc, cargo (jobserver & tempdir)
42+
"cssparser-macros", // MPL-2.0, rustdoc
43+
"selectors", // MPL-2.0, rustdoc
44+
"clippy_lints", // MPL-2.0 rls
4545
];
4646

4747
pub fn check(path: &Path, bad: &mut bool) {
@@ -57,7 +57,8 @@ pub fn check(path: &Path, bad: &mut bool) {
5757
if dir.path()
5858
.to_str()
5959
.unwrap()
60-
.contains(&format!("src/vendor/{}", exception)) {
60+
.contains(&format!("src/vendor/{}", exception))
61+
{
6162
continue 'next_path;
6263
}
6364
}
@@ -102,7 +103,7 @@ fn extract_license(line: &str) -> String {
102103
let first_quote = line.find('"');
103104
let last_quote = line.rfind('"');
104105
if let (Some(f), Some(l)) = (first_quote, last_quote) {
105-
let license = &line[f + 1 .. l];
106+
let license = &line[f + 1..l];
106107
license.into()
107108
} else {
108109
"bad-license-parse".into()

0 commit comments

Comments
 (0)