aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-03-22 22:33:16 -0700
committerFuwn <[email protected]>2022-03-22 22:33:16 -0700
commit18daebac86fe2f7b1ef0772a6a7ae3c8dedade04 (patch)
tree613d4795b59373507f77b4e63382421efcd96900 /src
parent7a31a997b2c426dab55d1a07ad698244f1dfd814 (diff)
downloadpara-18daebac86fe2f7b1ef0772a6a7ae3c8dedade04.tar.xz
para-18daebac86fe2f7b1ef0772a6a7ae3c8dedade04.zip
refactor(ppm): take slice instead of vector
Diffstat (limited to 'src')
-rw-r--r--src/ppm.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ppm.rs b/src/ppm.rs
index d39d7ed..b1bee9b 100644
--- a/src/ppm.rs
+++ b/src/ppm.rs
@@ -317,9 +317,7 @@ impl PPMParser {
self.stream.read_uint::<LittleEndian>(1).unwrap() >> 7 & 0x1 != 0
}
- fn read_line_types(
- #[allow(clippy::ptr_arg)] line_types: &Vec<u8>,
- ) -> impl Generator<Yield = (usize, u8), Return = ()> + '_ {
+ fn read_line_types(line_types: &[u8]) -> impl Generator<Yield = (usize, u8), Return = ()> + '_ {
move || {
for index in 0..192 {
let line_type = line_types.get(index / 4).unwrap() >> ((index % 4) * 2) & 0x03;