We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 412ebc3 commit 99d0519Copy full SHA for 99d0519
src/tools/clippy/clippy_lints/src/loops/manual_memcpy.rs
@@ -203,8 +203,11 @@ struct MinifyingSugg<'a>(Sugg<'a>);
203
204
impl<'a> MinifyingSugg<'a> {
205
fn as_str(&self) -> &str {
206
- let (Sugg::NonParen(s) | Sugg::MaybeParen(s) | Sugg::BinOp(_, s)) = &self.0;
207
- s.as_ref()
+ // HACK: Don't sync to Clippy! Required because something with the `or_patterns` feature
+ // changed and this would now require parentheses.
208
+ match &self.0 {
209
+ Sugg::NonParen(s) | Sugg::MaybeParen(s) | Sugg::BinOp(_, s) => s.as_ref(),
210
+ }
211
}
212
213
fn into_sugg(self) -> Sugg<'a> {
0 commit comments