Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
shssoichiro committed Sep 15, 2020
1 parent f83dc1c commit bc013fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/frame.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ use v_frame::plane::{Plane, PlaneConfig, PlaneOffset};

pub const SB_SIZE_LOG2: usize = 6;
pub const MI_SIZE_LOG2: usize = 2;
pub const MIB_SIZE_LOG2: usize = (SB_SIZE_LOG2 - MI_SIZE_LOG2);
pub const MI_SIZE: usize = (1 << MI_SIZE_LOG2);
pub const MIB_SIZE_LOG2: usize = SB_SIZE_LOG2 - MI_SIZE_LOG2;
pub const MI_SIZE: usize = 1 << MI_SIZE_LOG2;
pub const MAX_SB_SIZE_LOG2: usize = 7;
pub const MAX_MIB_SIZE_LOG2: usize = (MAX_SB_SIZE_LOG2 - MI_SIZE_LOG2);
pub const MAX_MIB_SIZE_LOG2: usize = MAX_SB_SIZE_LOG2 - MI_SIZE_LOG2;

pub const BLOCK_TO_PLANE_SHIFT: usize = MI_SIZE_LOG2;
pub const SUPERBLOCK_TO_BLOCK_SHIFT: usize = MIB_SIZE_LOG2;
Expand Down
2 changes: 1 addition & 1 deletion src/refs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ pub struct ReferenceFrame<T: Pixel> {

#[derive(Debug, Clone, Default)]
pub struct ReferenceFramesSet<T: Pixel> {
pub frames: [Option<Arc<ReferenceFrame<T>>>; (REF_FRAMES as usize)],
pub frames: [Option<Arc<ReferenceFrame<T>>>; REF_FRAMES as usize],
}

impl<T: Pixel> ReferenceFramesSet<T> {
Expand Down

0 comments on commit bc013fc

Please sign in to comment.