constify Default on Nanoseconds

This commit is contained in:
Nathaniel McCallum
2025-09-13 08:51:28 -04:00
parent e9385f9eea
commit d910253165
+2 -1
View File
@@ -112,7 +112,8 @@ impl Nanoseconds {
pub const ZERO: Self = unsafe { Nanoseconds::new_unchecked(0) };
}
impl Default for Nanoseconds {
#[rustc_const_unstable(feature = "const_default", issue = "143894")]
impl const Default for Nanoseconds {
#[inline]
fn default() -> Self {
Self::ZERO