Skip to content

Commit b8dc61a

Browse files
committed
Fix clippy issues
1 parent 29baebc commit b8dc61a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/semcheck/mapping.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ pub type InherentImplSet = BTreeSet<(DefId, DefId)>;
3232
/// Definitions and simple `DefId` mappings are kept separate to record both kinds of
3333
/// correspondence losslessly. The *access* to the stored data happens through the same API,
3434
/// however. A reverse mapping is also included, but only for `DefId` lookup.
35-
#[cfg_attr(feature = "cargo-clippy", allow(clippy::stutter))]
35+
#[cfg_attr(feature = "cargo-clippy", allow(clippy::module_name_repetitions))]
3636
pub struct IdMapping {
3737
/// The old crate.
3838
old_crate: CrateNum,
@@ -297,7 +297,7 @@ impl IdMapping {
297297
///
298298
/// Both old and new exports can be missing. Allows for reuse of the `HashMap`s used for storage.
299299
#[derive(Default)]
300-
#[cfg_attr(feature = "cargo-clippy", allow(clippy::stutter))]
300+
#[cfg_attr(feature = "cargo-clippy", allow(clippy::module_name_repetitions))]
301301
pub struct NameMapping {
302302
/// The exports in the type namespace.
303303
type_map: HashMap<Name, (Option<Export>, Option<Export>)>,

src/semcheck/mismatch.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use std::collections::{HashMap, HashSet, VecDeque};
2222
/// Keeps track of item pairs found that way that correspond to item matchings not yet known.
2323
/// This allows to match up some items that aren't exported, and which possibly even differ in
2424
/// their names across versions.
25-
#[cfg_attr(feature = "cargo-clippy", allow(clippy::stutter))]
25+
#[cfg_attr(feature = "cargo-clippy", allow(clippy::module_name_repetitions))]
2626
pub struct MismatchRelation<'a, 'gcx: 'a + 'tcx, 'tcx: 'a> {
2727
/// The type context used.
2828
tcx: TyCtxt<'a, 'gcx, 'tcx>,

0 commit comments

Comments
 (0)