X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Ftools%2Fclippy%2Fclippy_lints%2Fsrc%2Funnested_or_patterns.rs;h=1d4fe9cfd3cf40a8ac5459cf206f9c0704f711b0;hb=788f2969f6d2f7339c3c1e7da225d38283597804;hp=0bd151fed91cc57c50c2b0c8ca3a93dd09dd4880;hpb=d8bf974df56618f75ecd38d7e61fe0d720a9c8c4;p=rust.git diff --git a/src/tools/clippy/clippy_lints/src/unnested_or_patterns.rs b/src/tools/clippy/clippy_lints/src/unnested_or_patterns.rs index 0bd151fed91..1d4fe9cfd3c 100644 --- a/src/tools/clippy/clippy_lints/src/unnested_or_patterns.rs +++ b/src/tools/clippy/clippy_lints/src/unnested_or_patterns.rs @@ -291,7 +291,7 @@ fn transform_with_focus_on_idx(alternatives: &mut Vec
>, focus_idx: usize)
fn extend_with_struct_pat(
qself1: &Option >,
@@ -332,7 +332,7 @@ fn extend_with_struct_pat(
/// while also requiring `ps1[..n] ~ ps2[..n]` (pre) and `ps1[n + 1..] ~ ps2[n + 1..]` (post),
/// where `~` denotes semantic equality.
fn extend_with_matching_product(
- targets: &mut Vec >,
+ targets: &mut [P >,
predicate: impl Fn(&PatKind, &[P