diff options
| author | Amos Wenger <amoswenger@gmail.com> | 2022-07-20 15:02:08 +0200 |
|---|---|---|
| committer | Amos Wenger <amoswenger@gmail.com> | 2022-07-20 15:02:08 +0200 |
| commit | 816f7fe12a8584eb4bdd48ff3da8e4fc95f571a0 (patch) | |
| tree | a855b8bf05bb903a03de17a6842d32c89abcea1d /lib | |
| parent | 23d25a3094ec89fca610cd2e0d3434e36a4f11ab (diff) | |
| download | rust-816f7fe12a8584eb4bdd48ff3da8e4fc95f571a0.tar.gz rust-816f7fe12a8584eb4bdd48ff3da8e4fc95f571a0.zip | |
Run cargo fix --edition-idioms
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/la-arena/src/lib.rs | 6 |
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() } } |
