Skip to content

Commit

Permalink
add const fn
Browse files Browse the repository at this point in the history
  • Loading branch information
lulf committed Jul 5, 2024
1 parent 8310663 commit b9cd595
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/param.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ unsafe impl<const US: u32> FixedSizeValue for Duration<US> {

impl<const US: u32> Duration<US> {
#[inline(always)]
pub fn from_u16(val: u16) -> Self {
pub const fn from_u16(val: u16) -> Self {
Self(val)
}

Expand Down

0 comments on commit b9cd595

Please sign in to comment.