Skip to content

Commit 7bbecc1

Browse files
authored
Make DelayCM::new_unchecked const. (#316)
1 parent 9b42ebb commit 7bbecc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/delay.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ impl DelayCM {
106106
///
107107
/// # Safety
108108
/// Sysclk must be the same as the actual clock frequency of the chip
109-
pub unsafe fn new_unchecked(sysclk: Hertz) -> Self {
109+
pub const unsafe fn new_unchecked(sysclk: Hertz) -> Self {
110110
DelayCM { sysclk }
111111
}
112112
}

0 commit comments

Comments
 (0)