File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 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 {
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) ) ;
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments