about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorAmos Wenger <amoswenger@gmail.com>2022-07-20 15:02:08 +0200
committerAmos Wenger <amoswenger@gmail.com>2022-07-20 15:02:08 +0200
commit816f7fe12a8584eb4bdd48ff3da8e4fc95f571a0 (patch)
treea855b8bf05bb903a03de17a6842d32c89abcea1d /lib
parent23d25a3094ec89fca610cd2e0d3434e36a4f11ab (diff)
downloadrust-816f7fe12a8584eb4bdd48ff3da8e4fc95f571a0.tar.gz
rust-816f7fe12a8584eb4bdd48ff3da8e4fc95f571a0.zip
Run cargo fix --edition-idioms
Diffstat (limited to 'lib')
-rw-r--r--lib/la-arena/src/lib.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/la-arena/src/lib.rs b/lib/la-arena/src/lib.rs
index ce6eebd31eb..dadee43b108 100644
--- a/lib/la-arena/src/lib.rs
+++ b/lib/la-arena/src/lib.rs
@@ -31,13 +31,13 @@ impl From<u32> for RawIdx {
 }
 
 impl fmt::Debug for RawIdx {
-    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
+    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
         self.0.fmt(f)
     }
 }
 
 impl fmt::Display for RawIdx {
-    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
+    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
         self.0.fmt(f)
     }
 }
@@ -192,7 +192,7 @@ pub struct Arena<T> {
 }
 
 impl<T: fmt::Debug> fmt::Debug for Arena<T> {
-    fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
+    fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result {
         fmt.debug_struct("Arena").field("len", &self.len()).field("data", &self.data).finish()
     }
 }