Skip to content

Commit 3c85849

Browse files
Fix warnings of needless_pass_by_ref_mut in clippy
1 parent 56a2749 commit 3c85849

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

clippy_lints/src/literal_representation.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ impl LiteralDigitGrouping {
264264
return;
265265
}
266266

267-
if Self::is_literal_uuid_formatted(&mut num_lit) {
267+
if Self::is_literal_uuid_formatted(&num_lit) {
268268
return;
269269
}
270270

@@ -376,7 +376,7 @@ impl LiteralDigitGrouping {
376376
///
377377
/// Returns `true` if the radix is hexadecimal, and the groups match the
378378
/// UUID format of 8-4-4-4-12.
379-
fn is_literal_uuid_formatted(num_lit: &mut NumericLiteral<'_>) -> bool {
379+
fn is_literal_uuid_formatted(num_lit: &NumericLiteral<'_>) -> bool {
380380
if num_lit.radix != Radix::Hexadecimal {
381381
return false;
382382
}

clippy_lints/src/non_expressive_names.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ impl EarlyLintPass for NonExpressiveNames {
385385
}
386386
}
387387

388-
fn do_check(lint: &mut NonExpressiveNames, cx: &EarlyContext<'_>, attrs: &[Attribute], decl: &FnDecl, blk: &Block) {
388+
fn do_check(lint: &NonExpressiveNames, cx: &EarlyContext<'_>, attrs: &[Attribute], decl: &FnDecl, blk: &Block) {
389389
if !attrs.iter().any(|attr| attr.has_name(sym::test)) {
390390
let mut visitor = SimilarNamesLocalVisitor {
391391
names: Vec::new(),

0 commit comments

Comments
 (0)