Skip to content

Commit 68c4f8f

Browse files
lu-zerobarrbrain
authored andcommitted
Fix some nightly-introduced warnings
1 parent 034b045 commit 68c4f8f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/encoder.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ pub struct ReferenceFrame<T: Pixel> {
9191

9292
#[derive(Debug, Clone, Default)]
9393
pub struct ReferenceFramesSet<T: Pixel> {
94-
pub frames: [Option<Arc<ReferenceFrame<T>>>; (REF_FRAMES as usize)],
95-
pub deblock: [DeblockState; (REF_FRAMES as usize)],
94+
pub frames: [Option<Arc<ReferenceFrame<T>>>; REF_FRAMES as usize],
95+
pub deblock: [DeblockState; REF_FRAMES as usize],
9696
}
9797

9898
impl<T: Pixel> ReferenceFramesSet<T> {
@@ -874,7 +874,7 @@ impl<T: Pixel> FrameInvariants<T> {
874874
};
875875
// use a reference to the previous frame in the same level
876876
// (horizontally) as a third reference
877-
fi.ref_frames[ref_in_previous_group.to_index()] = { slot_idx as u8 }
877+
fi.ref_frames[ref_in_previous_group.to_index()] = slot_idx as u8;
878878
}
879879

880880
fi.set_ref_frame_sign_bias();

0 commit comments

Comments
 (0)