Skip to content

Commit

Permalink
Fix build breakage following Rust unstable method renames.
Browse files Browse the repository at this point in the history
  • Loading branch information
edarc committed Jan 20, 2019
1 parent 7cce7a7 commit 70e914b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/display/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ where
|| display_size.1 > NUM_PIXEL_ROWS as i16
|| display_offset.0 + display_size.0 > NUM_PIXEL_COLS as i16
|| display_offset.1 + display_size.1 > NUM_PIXEL_ROWS as i16
|| display_size.0.mod_euc(4) != 0
|| display_offset.0.mod_euc(4) != 0
|| display_size.0.rem_euclid(4) != 0
|| display_offset.0.rem_euclid(4) != 0
{
panic!("Display size or column offset not supported by SSD1322.");
}
Expand Down Expand Up @@ -150,8 +150,8 @@ where
|| lower_right.1 > NUM_PIXEL_ROWS as i16
|| upper_left.0 >= lower_right.0
|| upper_left.1 >= lower_right.1
|| upper_left.0.mod_euc(4) != 0
|| lower_right.0.mod_euc(4) != 0
|| upper_left.0.rem_euclid(4) != 0
|| lower_right.0.rem_euclid(4) != 0
{
return Err(());
}
Expand Down Expand Up @@ -182,8 +182,8 @@ where
if false
|| upper_left.0 >= lower_right.0
|| upper_left.1 >= lower_right.1
|| upper_left.0.mod_euc(4) != 0
|| lower_right.0.mod_euc(4) != 0
|| upper_left.0.rem_euclid(4) != 0
|| lower_right.0.rem_euclid(4) != 0
{
return Err(());
}
Expand Down

0 comments on commit 70e914b

Please sign in to comment.