Skip to content

Commit 22f396a

Browse files
committed
Apply redundant_clone on clippy
1 parent 109d4b1 commit 22f396a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/attrs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ fn check_clippy_lint_names(cx: &LateContext<'_, '_>, items: &[NestedMetaItem]) {
332332
&format!("unknown clippy lint: clippy::{}", name),
333333
|db| {
334334
if name.as_str().chars().any(|c| c.is_uppercase()) {
335-
let name_lower = name.as_str().to_lowercase().to_string();
335+
let name_lower = name.as_str().to_lowercase();
336336
match lint_store.check_lint_name(
337337
&name_lower,
338338
Some(tool_name.as_str())

0 commit comments

Comments
 (0)