File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -48,15 +48,15 @@ declare_clippy_lint! {
48
48
}
49
49
#[ derive( Clone , Debug ) ]
50
50
pub struct DisallowedType {
51
- disallowed : Vec < conf:: DisallowedType > ,
51
+ conf_disallowed : Vec < conf:: DisallowedType > ,
52
52
def_ids : FxHashMap < DefId , Option < String > > ,
53
53
prim_tys : FxHashMap < PrimTy , Option < String > > ,
54
54
}
55
55
56
56
impl DisallowedType {
57
- pub fn new ( disallowed : Vec < conf:: DisallowedType > ) -> Self {
57
+ pub fn new ( conf_disallowed : Vec < conf:: DisallowedType > ) -> Self {
58
58
Self {
59
- disallowed ,
59
+ conf_disallowed ,
60
60
def_ids : FxHashMap :: default ( ) ,
61
61
prim_tys : FxHashMap :: default ( ) ,
62
62
}
@@ -83,7 +83,7 @@ impl_lint_pass!(DisallowedType => [DISALLOWED_TYPE]);
83
83
84
84
impl < ' tcx > LateLintPass < ' tcx > for DisallowedType {
85
85
fn check_crate ( & mut self , cx : & LateContext < ' _ > ) {
86
- for conf in & self . disallowed {
86
+ for conf in & self . conf_disallowed {
87
87
let ( path, reason) = match conf {
88
88
conf:: DisallowedType :: Simple ( path) => ( path, None ) ,
89
89
conf:: DisallowedType :: WithReason { path, reason } => (
You can’t perform that action at this time.
0 commit comments