Skip to content

Commit cbde820

Browse files
committed
Remove unused utils
1 parent 7596503 commit cbde820

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

clippy_lints/src/utils/mod.rs

-8
Original file line numberDiff line numberDiff line change
@@ -957,14 +957,6 @@ pub fn get_arg_name(pat: &Pat) -> Option<ast::Name> {
957957
}
958958
}
959959

960-
pub fn get_arg_ident(pat: &Pat) -> Option<ast::Ident> {
961-
match pat.node {
962-
PatKind::Binding(_, _, ident, None) => Some(ident),
963-
PatKind::Ref(ref subpat, _) => get_arg_ident(subpat),
964-
_ => None,
965-
}
966-
}
967-
968960
pub fn int_bits(tcx: TyCtxt<'_, '_, '_>, ity: ast::IntTy) -> u64 {
969961
layout::Integer::from_attr(tcx, attr::IntType::SignedInt(ity)).size().bits()
970962
}

clippy_lints/src/utils/paths.rs

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ pub const BORROW_TRAIT: [&str; 3] = ["core", "borrow", "Borrow"];
1212
pub const BTREEMAP: [&str; 5] = ["alloc", "collections", "btree", "map", "BTreeMap"];
1313
pub const BTREEMAP_ENTRY: [&str; 5] = ["alloc", "collections", "btree", "map", "Entry"];
1414
pub const BTREESET: [&str; 5] = ["alloc", "collections", "btree", "set", "BTreeSet"];
15-
pub const CLONE: [&str; 4] = ["core", "clone", "Clone", "clone"];
1615
pub const CLONE_TRAIT: [&str; 3] = ["core", "clone", "Clone"];
1716
pub const CMP_MAX: [&str; 3] = ["core", "cmp", "max"];
1817
pub const CMP_MIN: [&str; 3] = ["core", "cmp", "min"];

0 commit comments

Comments
 (0)