about summary refs log tree commit diff
path: root/src/libstd/sys/vxworks/time.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2020-07-23 00:42:12 -0700
committerGitHub <noreply@github.com>2020-07-23 00:42:12 -0700
commitbea2eedcb5cb08c08069db554abe7880a3dfd693 (patch)
tree6e56d61ce1637860042bed4fc8a078bd84253cde /src/libstd/sys/vxworks/time.rs
parent5629223782074cc38597775e47e947081253ac26 (diff)
parent0de7fade1053f553f83ac603079602d50ab14e19 (diff)
downloadrust-bea2eedcb5cb08c08069db554abe7880a3dfd693.tar.gz
rust-bea2eedcb5cb08c08069db554abe7880a3dfd693.zip
Rollup merge of #74587 - lzutao:consts, r=dtolnay
Prefer constant over function

Just that I prefer constants over functions that can be made const.
Diffstat (limited to 'src/libstd/sys/vxworks/time.rs')
-rw-r--r--src/libstd/sys/vxworks/time.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sys/vxworks/time.rs b/src/libstd/sys/vxworks/time.rs
index 8365c9ee9c9..8f46f4d284f 100644
--- a/src/libstd/sys/vxworks/time.rs
+++ b/src/libstd/sys/vxworks/time.rs
@@ -1,6 +1,6 @@
 use crate::cmp::Ordering;
 use crate::time::Duration;
-use ::core::hash::{Hash, Hasher};
+use core::hash::{Hash, Hasher};
 
 pub use self::inner::{Instant, SystemTime, UNIX_EPOCH};
 use crate::convert::TryInto;