Skip to content

Commit d46ec4a

Browse files
committed
Fix formatting
1 parent 006061b commit d46ec4a

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

src/vp8.rs

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -822,8 +822,14 @@ impl Frame {
822822

823823
let buffer_width = usize::from(self.buffer_width());
824824

825-
let u_row_twice_iter = self.ubuf.chunks_exact(buffer_width / 2).flat_map(|n| std::iter::repeat(n).take(2));
826-
let v_row_twice_iter = self.vbuf.chunks_exact(buffer_width / 2).flat_map(|n| std::iter::repeat(n).take(2));
825+
let u_row_twice_iter = self
826+
.ubuf
827+
.chunks_exact(buffer_width / 2)
828+
.flat_map(|n| std::iter::repeat(n).take(2));
829+
let v_row_twice_iter = self
830+
.vbuf
831+
.chunks_exact(buffer_width / 2)
832+
.flat_map(|n| std::iter::repeat(n).take(2));
827833

828834
for (((row, y_row), u_row), v_row) in buf
829835
.chunks_exact_mut(usize::from(self.width) * BPP)
@@ -895,8 +901,14 @@ impl Frame {
895901

896902
let buffer_width = usize::from(self.buffer_width());
897903

898-
let u_row_twice_iter = self.ubuf.chunks_exact(buffer_width / 2).flat_map(|n| std::iter::repeat(n).take(2));
899-
let v_row_twice_iter = self.vbuf.chunks_exact(buffer_width / 2).flat_map(|n| std::iter::repeat(n).take(2));
904+
let u_row_twice_iter = self
905+
.ubuf
906+
.chunks_exact(buffer_width / 2)
907+
.flat_map(|n| std::iter::repeat(n).take(2));
908+
let v_row_twice_iter = self
909+
.vbuf
910+
.chunks_exact(buffer_width / 2)
911+
.flat_map(|n| std::iter::repeat(n).take(2));
900912

901913
for (((row, y_row), u_row), v_row) in buf
902914
.chunks_exact_mut(usize::from(self.width) * BPP)

0 commit comments

Comments
 (0)