This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +2
-3
lines changed Expand file tree Collapse file tree 3 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -177,7 +177,6 @@ format_collect = "allow"
177177large_enum_variant = " allow"
178178needless_doctest_main = " allow"
179179new_without_default = " allow"
180- nonminimal_bool = " allow"
181180non_canonical_clone_impl = " allow"
182181non_canonical_partial_ord_impl = " allow"
183182non_minimal_cfg = " allow"
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ fn validate_type_recursively(
100100 }
101101 ( _, Some ( ty) ) => match ty. as_builtin ( ) {
102102 // `const A: str` is not correct, but `const A: &builtin` is.
103- Some ( builtin) if refed || ( !refed && ! builtin. is_str ( ) ) => Some ( ( ) ) ,
103+ Some ( builtin) if refed || ! builtin. is_str ( ) => Some ( ( ) ) ,
104104 _ => None ,
105105 } ,
106106 _ => None ,
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ impl ActiveParameter {
2323
2424 let idx = active_parameter?;
2525 let mut params = signature. params ( sema. db ) ;
26- if ! ( idx < params. len ( ) ) {
26+ if idx >= params. len ( ) {
2727 cov_mark:: hit!( too_many_arguments) ;
2828 return None ;
2929 }
You can’t perform that action at this time.
0 commit comments