Skip to content

Commit 28233ff

Browse files
fix format
1 parent 5e58f80 commit 28233ff

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

library/core/src/num/niche_types.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,9 @@ impl Nanoseconds {
101101
// SAFETY: 0 is within the valid range
102102
pub const ZERO: Self = unsafe { Nanoseconds::new_unchecked(0) };
103103
//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}
104+
pub fn get_zero(&self) -> u32 {
105+
self.0
106+
}
105107
}
106108

107109
impl Default for Nanoseconds {

0 commit comments

Comments
 (0)