Skip to content

Commit

Permalink
Remove redundant string creation.
Browse files Browse the repository at this point in the history
  • Loading branch information
AurelienFT committed Mar 8, 2022
1 parent d7c66f1 commit a4a130d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion massa-time/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ impl MassaTime {
/// ```
pub fn to_utc_string(self) -> String {
let naive = OffsetDateTime::from_unix_timestamp(self.to_millis() as i64).unwrap();
naive.format(&Rfc3339).unwrap().to_string()
naive.format(&Rfc3339).unwrap()
}

/// ```
Expand Down

0 comments on commit a4a130d

Please sign in to comment.