diff options
| author | ljedrz <ljedrz@gmail.com> | 2018-12-04 12:46:10 +0100 |
|---|---|---|
| committer | ljedrz <ljedrz@gmail.com> | 2018-12-04 12:46:10 +0100 |
| commit | d0c64bb29631fc5e5fafbe88374e7e1325b70ba5 (patch) | |
| tree | ff7a7379405a9196475630fec7c0f268310935d7 /src/liballoc | |
| parent | 91d5d56c00d8e2926ccf856f14a4e52ef480d039 (diff) | |
| download | rust-d0c64bb29631fc5e5fafbe88374e7e1325b70ba5.tar.gz rust-d0c64bb29631fc5e5fafbe88374e7e1325b70ba5.zip | |
cleanup: remove static lifetimes from consts
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/string.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/string.rs b/src/liballoc/string.rs index 662f8ae614f..acc1f9b306e 100644 --- a/src/liballoc/string.rs +++ b/src/liballoc/string.rs @@ -577,7 +577,7 @@ impl String { return Cow::Borrowed(""); }; - const REPLACEMENT: &'static str = "\u{FFFD}"; + const REPLACEMENT: &str = "\u{FFFD}"; let mut res = String::with_capacity(v.len()); res.push_str(first_valid); |
