more clippy::complexity fixes
redundant_guards redundant_slicing filter_next needless_borrowed_reference useless_format
This commit is contained in:
parent
27d8a57713
commit
3795cc8eb0
10 changed files with 18 additions and 28 deletions
|
@ -174,7 +174,7 @@ impl<'a, 'tcx> PatCtxt<'a, 'tcx> {
|
|||
span: Span,
|
||||
) -> Result<PatKind<'tcx>, ErrorGuaranteed> {
|
||||
if lo_expr.is_none() && hi_expr.is_none() {
|
||||
let msg = format!("found twice-open range pattern (`..`) outside of error recovery");
|
||||
let msg = "found twice-open range pattern (`..`) outside of error recovery";
|
||||
return Err(self.tcx.sess.span_delayed_bug(span, msg));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue