about summary refs log tree commit diff
path: root/src/libstd/sys/wasm/time.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstd/sys/wasm/time.rs')
-rw-r--r--src/libstd/sys/wasm/time.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libstd/sys/wasm/time.rs b/src/libstd/sys/wasm/time.rs
index dd9ad3760b0..d9edc7fdc44 100644
--- a/src/libstd/sys/wasm/time.rs
+++ b/src/libstd/sys/wasm/time.rs
@@ -39,8 +39,7 @@ impl SystemTime {
         panic!("time not implemented on wasm32-unknown-unknown")
     }
 
-    pub fn sub_time(&self, other: &SystemTime)
-                    -> Result<Duration, Duration> {
+    pub fn sub_time(&self, other: &SystemTime) -> Result<Duration, Duration> {
         self.0.checked_sub(other.0).ok_or_else(|| other.0 - self.0)
     }