Skip to content

Commit 70e914b

Browse files
committed
Fix build breakage following Rust unstable method renames.
rust-lang/rust#56936
1 parent 7cce7a7 commit 70e914b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/display/mod.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ where
6262
|| display_size.1 > NUM_PIXEL_ROWS as i16
6363
|| display_offset.0 + display_size.0 > NUM_PIXEL_COLS as i16
6464
|| display_offset.1 + display_size.1 > NUM_PIXEL_ROWS as i16
65-
|| display_size.0.mod_euc(4) != 0
66-
|| display_offset.0.mod_euc(4) != 0
65+
|| display_size.0.rem_euclid(4) != 0
66+
|| display_offset.0.rem_euclid(4) != 0
6767
{
6868
panic!("Display size or column offset not supported by SSD1322.");
6969
}
@@ -150,8 +150,8 @@ where
150150
|| lower_right.1 > NUM_PIXEL_ROWS as i16
151151
|| upper_left.0 >= lower_right.0
152152
|| upper_left.1 >= lower_right.1
153-
|| upper_left.0.mod_euc(4) != 0
154-
|| lower_right.0.mod_euc(4) != 0
153+
|| upper_left.0.rem_euclid(4) != 0
154+
|| lower_right.0.rem_euclid(4) != 0
155155
{
156156
return Err(());
157157
}
@@ -182,8 +182,8 @@ where
182182
if false
183183
|| upper_left.0 >= lower_right.0
184184
|| upper_left.1 >= lower_right.1
185-
|| upper_left.0.mod_euc(4) != 0
186-
|| lower_right.0.mod_euc(4) != 0
185+
|| upper_left.0.rem_euclid(4) != 0
186+
|| lower_right.0.rem_euclid(4) != 0
187187
{
188188
return Err(());
189189
}

0 commit comments

Comments
 (0)