We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e64138c commit 402a00aCopy full SHA for 402a00a
src/tools/clippy/clippy_lints/src/loops.rs
@@ -885,7 +885,9 @@ struct MinifyingSugg<'a>(Sugg<'a>);
885
886
impl<'a> MinifyingSugg<'a> {
887
fn as_str(&self) -> &str {
888
- let Sugg::NonParen(s) | Sugg::MaybeParen(s) | Sugg::BinOp(_, s) = &self.0;
+ let s = match &self.0 {
889
+ Sugg::NonParen(s) | Sugg::MaybeParen(s) | Sugg::BinOp(_, s) => s,
890
+ };
891
s.as_ref()
892
}
893
0 commit comments