@@ -29,19 +29,19 @@ static LICENSES: &'static [&'static str] = &[
29
29
// tooling. It is _crucial_ that no exception crates be dependencies
30
30
// of the Rust runtime (std / test).
31
31
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
40
40
"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
45
45
] ;
46
46
47
47
pub fn check ( path : & Path , bad : & mut bool ) {
@@ -57,7 +57,8 @@ pub fn check(path: &Path, bad: &mut bool) {
57
57
if dir. path ( )
58
58
. to_str ( )
59
59
. unwrap ( )
60
- . contains ( & format ! ( "src/vendor/{}" , exception) ) {
60
+ . contains ( & format ! ( "src/vendor/{}" , exception) )
61
+ {
61
62
continue ' next_path;
62
63
}
63
64
}
@@ -102,7 +103,7 @@ fn extract_license(line: &str) -> String {
102
103
let first_quote = line. find ( '"' ) ;
103
104
let last_quote = line. rfind ( '"' ) ;
104
105
if let ( Some ( f) , Some ( l) ) = ( first_quote, last_quote) {
105
- let license = & line[ f + 1 .. l] ;
106
+ let license = & line[ f + 1 .. l] ;
106
107
license. into ( )
107
108
} else {
108
109
"bad-license-parse" . into ( )
0 commit comments