about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorljedrz <ljedrz@gmail.com>2018-12-04 12:46:10 +0100
committerljedrz <ljedrz@gmail.com>2018-12-04 12:46:10 +0100
commitd0c64bb29631fc5e5fafbe88374e7e1325b70ba5 (patch)
treeff7a7379405a9196475630fec7c0f268310935d7 /src/liballoc
parent91d5d56c00d8e2926ccf856f14a4e52ef480d039 (diff)
downloadrust-d0c64bb29631fc5e5fafbe88374e7e1325b70ba5.tar.gz
rust-d0c64bb29631fc5e5fafbe88374e7e1325b70ba5.zip
cleanup: remove static lifetimes from consts
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/string.rs2
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);