We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e58f80 commit 28233ffCopy full SHA for 28233ff
library/core/src/num/niche_types.rs
@@ -101,7 +101,9 @@ impl Nanoseconds {
101
// SAFETY: 0 is within the valid range
102
pub const ZERO: Self = unsafe { Nanoseconds::new_unchecked(0) };
103
//This function is added to get the value of the private field when using this struct in time.rs
104
- pub fn get_zero(&self) -> u32 {self.0}
+ pub fn get_zero(&self) -> u32 {
105
+ self.0
106
+ }
107
}
108
109
impl Default for Nanoseconds {
0 commit comments