about summary refs log tree commit diff
path: root/src/libcore/char/decode.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcore/char/decode.rs')
-rw-r--r--src/libcore/char/decode.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/char/decode.rs b/src/libcore/char/decode.rs
index ed92eca08bf..23059243c61 100644
--- a/src/libcore/char/decode.rs
+++ b/src/libcore/char/decode.rs
@@ -128,7 +128,7 @@ impl DecodeUtf16Error {
 
 #[stable(feature = "decode_utf16", since = "1.9.0")]
 impl fmt::Display for DecodeUtf16Error {
-    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
+    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
         write!(f, "unpaired surrogate found: {:x}", self.code)
     }
 }