Skip to content

Commit 886cbb1

Browse files
Rename disallowed to conf_disallowed
Co-authored-by: James Hinshelwood <[email protected]>
1 parent 857a407 commit 886cbb1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

clippy_lints/src/disallowed_type.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@ declare_clippy_lint! {
4848
}
4949
#[derive(Clone, Debug)]
5050
pub struct DisallowedType {
51-
disallowed: Vec<conf::DisallowedType>,
51+
conf_disallowed: Vec<conf::DisallowedType>,
5252
def_ids: FxHashMap<DefId, Option<String>>,
5353
prim_tys: FxHashMap<PrimTy, Option<String>>,
5454
}
5555

5656
impl DisallowedType {
57-
pub fn new(disallowed: Vec<conf::DisallowedType>) -> Self {
57+
pub fn new(conf_disallowed: Vec<conf::DisallowedType>) -> Self {
5858
Self {
59-
disallowed,
59+
conf_disallowed,
6060
def_ids: FxHashMap::default(),
6161
prim_tys: FxHashMap::default(),
6262
}
@@ -83,7 +83,7 @@ impl_lint_pass!(DisallowedType => [DISALLOWED_TYPE]);
8383

8484
impl<'tcx> LateLintPass<'tcx> for DisallowedType {
8585
fn check_crate(&mut self, cx: &LateContext<'_>) {
86-
for conf in &self.disallowed {
86+
for conf in &self.conf_disallowed {
8787
let (path, reason) = match conf {
8888
conf::DisallowedType::Simple(path) => (path, None),
8989
conf::DisallowedType::WithReason { path, reason } => (

0 commit comments

Comments
 (0)