File tree 3 files changed +14
-19
lines changed 3 files changed +14
-19
lines changed Original file line number Diff line number Diff line change @@ -95,20 +95,13 @@ fn update_lints(update_mode: &UpdateMode) {
95
95
sorted_usable_lints. sort_by_key ( |lint| lint. name . clone ( ) ) ;
96
96
97
97
std:: fs:: write (
98
- "../src/lintlist.rs" ,
98
+ "../src/lintlist/mod .rs" ,
99
99
& format ! (
100
100
"\
101
101
//! This file is managed by util/dev update_lints. Do not edit.
102
102
103
- /// Lint data parsed from the Clippy source code.
104
- #[derive(Clone, PartialEq, Debug)]
105
- pub struct Lint {{
106
- pub name: &'static str,
107
- pub group: &'static str,
108
- pub desc: &'static str,
109
- pub deprecation: Option<&'static str>,
110
- pub module: &'static str,
111
- }}
103
+ mod lint;
104
+ use lint::Lint;
112
105
113
106
pub const ALL_LINTS: [Lint; {}] = {:#?};\n " ,
114
107
sorted_usable_lints. len( ) ,
Original file line number Diff line number Diff line change
1
+ /// Lint data parsed from the Clippy source code.
2
+ #[ derive( Clone , PartialEq , Debug ) ]
3
+ pub struct Lint {
4
+ pub name : & ' static str ,
5
+ pub group : & ' static str ,
6
+ pub desc : & ' static str ,
7
+ pub deprecation : Option < & ' static str > ,
8
+ pub module : & ' static str ,
9
+ }
Original file line number Diff line number Diff line change 1
1
//! This file is managed by util/dev update_lints. Do not edit.
2
2
3
- /// Lint data parsed from the Clippy source code.
4
- #[ derive( Clone , PartialEq , Debug ) ]
5
- pub struct Lint {
6
- pub name : & ' static str ,
7
- pub group : & ' static str ,
8
- pub desc : & ' static str ,
9
- pub deprecation : Option < & ' static str > ,
10
- pub module : & ' static str ,
11
- }
3
+ mod lint;
4
+ use lint:: Lint ;
12
5
13
6
pub const ALL_LINTS : [ Lint ; 304 ] = [
14
7
Lint {
You can’t perform that action at this time.
0 commit comments