File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -648,7 +648,7 @@ fn deserialize(file: &SourceFile) -> TryConf {
648
648
extend_vec_if_indicator_present ( & mut conf. conf . doc_valid_idents , DEFAULT_DOC_VALID_IDENTS ) ;
649
649
extend_vec_if_indicator_present ( & mut conf. conf . disallowed_names , DEFAULT_DISALLOWED_NAMES ) ;
650
650
// 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 ( ".." ) {
652
652
conf. conf
653
653
. allowed_idents_below_min_chars
654
654
. extend ( DEFAULT_ALLOWED_IDENTS_BELOW_MIN_CHARS . iter ( ) . map ( ToString :: to_string) ) ;
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ impl MinIdentChars {
53
53
&& str. len ( ) <= self . min_ident_chars_threshold as usize
54
54
&& !str. starts_with ( '_' )
55
55
&& !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)
57
57
}
58
58
}
59
59
You can’t perform that action at this time.
0 commit comments