diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-06-06 23:53:16 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-06 23:53:16 +0200 |
| commit | 507183d438e615dcc24eb488a6622b5591801058 (patch) | |
| tree | e48878b9f90369f8d48f5164cdca742906de6bc5 | |
| parent | 2c951058d4a68861a8bd4ba1ad280bcf46595dc8 (diff) | |
| parent | e177dd0b439ec460112cc4693694cbd5d275ce0e (diff) | |
| download | rust-507183d438e615dcc24eb488a6622b5591801058.tar.gz rust-507183d438e615dcc24eb488a6622b5591801058.zip | |
Rollup merge of #141603 - nnethercote:reduce-P, r=fee1-dead
Reduce `ast::ptr::P` to a typedef of `Box` As per the MCP at https://github.com/rust-lang/compiler-team/issues/878. r? `@fee1-dead`
| -rw-r--r-- | clippy_lints/src/unnested_or_patterns.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/unnested_or_patterns.rs b/clippy_lints/src/unnested_or_patterns.rs index 9ad184450de..b839b6f5672 100644 --- a/clippy_lints/src/unnested_or_patterns.rs +++ b/clippy_lints/src/unnested_or_patterns.rs @@ -426,7 +426,7 @@ fn drain_matching( // Check if we should extract, but only if `idx >= start`. if idx > start && predicate(&alternatives[i].kind) { let pat = alternatives.remove(i); - tail_or.push(extract(pat.into_inner().kind)); + tail_or.push(extract(pat.kind)); } else { i += 1; } |
