aboutsummaryrefslogtreecommitdiff
path: root/src/datetime.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/datetime.rs')
-rw-r--r--src/datetime.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/datetime.rs b/src/datetime.rs
index 9239593..b77621a 100644
--- a/src/datetime.rs
+++ b/src/datetime.rs
@@ -99,7 +99,7 @@ impl fmt::Display for Time {
write!(f, "{:02}:{:02}:{:02}", self.hour, self.minute, self.second)?;
if self.nanosecond != 0 {
let s = format!("{:09}", self.nanosecond);
- write!(f, ".{}", s.trim_right_matches('0'))?;
+ write!(f, ".{}", s.trim_end_matches('0'))?;
}
Ok(())
}