Skip to content

Commit

Permalink
Rename disallowed to conf_disallowed
Browse files Browse the repository at this point in the history
Co-authored-by: James Hinshelwood <james.hinshelwood@bigpayme.com>
  • Loading branch information
JamesHinshelwood and james-bigpay committed Oct 11, 2021
1 parent 857a407 commit 886cbb1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions clippy_lints/src/disallowed_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ declare_clippy_lint! {
}
#[derive(Clone, Debug)]
pub struct DisallowedType {
disallowed: Vec<conf::DisallowedType>,
conf_disallowed: Vec<conf::DisallowedType>,
def_ids: FxHashMap<DefId, Option<String>>,
prim_tys: FxHashMap<PrimTy, Option<String>>,
}

impl DisallowedType {
pub fn new(disallowed: Vec<conf::DisallowedType>) -> Self {
pub fn new(conf_disallowed: Vec<conf::DisallowedType>) -> Self {
Self {
disallowed,
conf_disallowed,
def_ids: FxHashMap::default(),
prim_tys: FxHashMap::default(),
}
Expand All @@ -83,7 +83,7 @@ impl_lint_pass!(DisallowedType => [DISALLOWED_TYPE]);

impl<'tcx> LateLintPass<'tcx> for DisallowedType {
fn check_crate(&mut self, cx: &LateContext<'_>) {
for conf in &self.disallowed {
for conf in &self.conf_disallowed {
let (path, reason) = match conf {
conf::DisallowedType::Simple(path) => (path, None),
conf::DisallowedType::WithReason { path, reason } => (
Expand Down

0 comments on commit 886cbb1

Please sign in to comment.