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"
177
177
large_enum_variant = " allow"
178
178
needless_doctest_main = " allow"
179
179
new_without_default = " allow"
180
- nonminimal_bool = " allow"
181
180
non_canonical_clone_impl = " allow"
182
181
non_canonical_partial_ord_impl = " allow"
183
182
non_minimal_cfg = " allow"
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ fn validate_type_recursively(
100
100
}
101
101
( _, Some ( ty) ) => match ty. as_builtin ( ) {
102
102
// `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 ( ( ) ) ,
104
104
_ => None ,
105
105
} ,
106
106
_ => None ,
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ impl ActiveParameter {
23
23
24
24
let idx = active_parameter?;
25
25
let mut params = signature. params ( sema. db ) ;
26
- if ! ( idx < params. len ( ) ) {
26
+ if idx >= params. len ( ) {
27
27
cov_mark:: hit!( too_many_arguments) ;
28
28
return None ;
29
29
}
You can’t perform that action at this time.
0 commit comments