diff options
author | Alan Wu <XrXr@users.noreply.github.com> | 2023-11-10 15:54:54 -0500 |
---|---|---|
committer | Alan Wu <XrXr@users.noreply.github.com> | 2023-11-10 16:55:56 -0500 |
commit | f5fa90fe0bf8f606e80a86f02f939003e7aa6834 (patch) | |
tree | 340fd5e5f4a43424df1f1fdbfa0b826e85a81f47 /yjit/src/asm/arm64/arg | |
parent | 8dfbfa15f6d0d8677cd1b4adb192643a05d02411 (diff) | |
download | ruby-f5fa90fe0bf8f606e80a86f02f939003e7aa6834.tar.gz |
YJIT: Fix `clippy::useless_vec` in a test
Diffstat (limited to 'yjit/src/asm/arm64/arg')
-rw-r--r-- | yjit/src/asm/arm64/arg/bitmask_imm.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yjit/src/asm/arm64/arg/bitmask_imm.rs b/yjit/src/asm/arm64/arg/bitmask_imm.rs index ff9b2c8a2d..6b71a73d2c 100644 --- a/yjit/src/asm/arm64/arg/bitmask_imm.rs +++ b/yjit/src/asm/arm64/arg/bitmask_imm.rs @@ -106,7 +106,7 @@ mod tests { #[test] fn test_failures() { - vec![5, 9, 10, 11, 13, 17, 18, 19].iter().for_each(|&imm| { + [5, 9, 10, 11, 13, 17, 18, 19].iter().for_each(|&imm| { assert!(BitmaskImmediate::try_from(imm).is_err()); }); } |