diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2020-07-23 00:42:12 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-23 00:42:12 -0700 |
| commit | bea2eedcb5cb08c08069db554abe7880a3dfd693 (patch) | |
| tree | 6e56d61ce1637860042bed4fc8a078bd84253cde /src/libstd/sys/vxworks/time.rs | |
| parent | 5629223782074cc38597775e47e947081253ac26 (diff) | |
| parent | 0de7fade1053f553f83ac603079602d50ab14e19 (diff) | |
| download | rust-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.rs | 2 |
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; |
