diff options
| author | ljedrz <ljedrz@gmail.com> | 2018-12-04 10:21:42 +0100 |
|---|---|---|
| committer | ljedrz <ljedrz@gmail.com> | 2018-12-04 10:21:42 +0100 |
| commit | 8c4129cd9ae079fc010b8e3d73a72659b2f0a986 (patch) | |
| tree | 99f1759018df33a5a7075f51410e7d7eaea15c9e /src/libstd/sys/wasm | |
| parent | 91d5d56c00d8e2926ccf856f14a4e52ef480d039 (diff) | |
| download | rust-8c4129cd9ae079fc010b8e3d73a72659b2f0a986.tar.gz rust-8c4129cd9ae079fc010b8e3d73a72659b2f0a986.zip | |
cleanup: remove static lifetimes from consts in libstd
Diffstat (limited to 'src/libstd/sys/wasm')
| -rw-r--r-- | src/libstd/sys/wasm/env.rs | 14 | ||||
| -rw-r--r-- | src/libstd/sys/wasm/path.rs | 2 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/libstd/sys/wasm/env.rs b/src/libstd/sys/wasm/env.rs index 1422042bd02..09235a944ee 100644 --- a/src/libstd/sys/wasm/env.rs +++ b/src/libstd/sys/wasm/env.rs @@ -9,11 +9,11 @@ // except according to those terms. pub mod os { - pub const FAMILY: &'static str = ""; - pub const OS: &'static str = ""; - pub const DLL_PREFIX: &'static str = ""; - pub const DLL_SUFFIX: &'static str = ".wasm"; - pub const DLL_EXTENSION: &'static str = "wasm"; - pub const EXE_SUFFIX: &'static str = ".wasm"; - pub const EXE_EXTENSION: &'static str = "wasm"; + pub const FAMILY: &str = ""; + pub const OS: &str = ""; + pub const DLL_PREFIX: &str = ""; + pub const DLL_SUFFIX: &str = ".wasm"; + pub const DLL_EXTENSION: &str = "wasm"; + pub const EXE_SUFFIX: &str = ".wasm"; + pub const EXE_EXTENSION: &str = "wasm"; } diff --git a/src/libstd/sys/wasm/path.rs b/src/libstd/sys/wasm/path.rs index 395b8c1e40e..fcc9d617a87 100644 --- a/src/libstd/sys/wasm/path.rs +++ b/src/libstd/sys/wasm/path.rs @@ -25,5 +25,5 @@ pub fn parse_prefix(_: &OsStr) -> Option<Prefix> { None } -pub const MAIN_SEP_STR: &'static str = "/"; +pub const MAIN_SEP_STR: &str = "/"; pub const MAIN_SEP: char = '/'; |
