clippy: fix or-pattern in let binding
This commit is contained in:
parent
e64138c534
commit
402a00a15d
@ -885,7 +885,9 @@ fn get_span_of_entire_for_loop(expr: &Expr<'_>) -> Span {
|
|||||||
|
|
||||||
impl<'a> MinifyingSugg<'a> {
|
impl<'a> MinifyingSugg<'a> {
|
||||||
fn as_str(&self) -> &str {
|
fn as_str(&self) -> &str {
|
||||||
let Sugg::NonParen(s) | Sugg::MaybeParen(s) | Sugg::BinOp(_, s) = &self.0;
|
let s = match &self.0 {
|
||||||
|
Sugg::NonParen(s) | Sugg::MaybeParen(s) | Sugg::BinOp(_, s) => s,
|
||||||
|
};
|
||||||
s.as_ref()
|
s.as_ref()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user