Skip to content

Commit 635acb6

Browse files
Fix newly detected lint issues
1 parent d281461 commit 635acb6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clippy_config/src/conf.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ fn deserialize(file: &SourceFile) -> TryConf {
648648
extend_vec_if_indicator_present(&mut conf.conf.doc_valid_idents, DEFAULT_DOC_VALID_IDENTS);
649649
extend_vec_if_indicator_present(&mut conf.conf.disallowed_names, DEFAULT_DISALLOWED_NAMES);
650650
// TODO: THIS SHOULD BE TESTED, this comment will be gone soon
651-
if conf.conf.allowed_idents_below_min_chars.contains(&"..".to_owned()) {
651+
if conf.conf.allowed_idents_below_min_chars.contains("..") {
652652
conf.conf
653653
.allowed_idents_below_min_chars
654654
.extend(DEFAULT_ALLOWED_IDENTS_BELOW_MIN_CHARS.iter().map(ToString::to_string));

clippy_lints/src/min_ident_chars.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ impl MinIdentChars {
5353
&& str.len() <= self.min_ident_chars_threshold as usize
5454
&& !str.starts_with('_')
5555
&& !str.is_empty()
56-
&& self.allowed_idents_below_min_chars.get(&str.to_owned()).is_none()
56+
&& !self.allowed_idents_below_min_chars.contains(str)
5757
}
5858
}
5959

0 commit comments

Comments
 (0)