From 3d7bc11c1607e071324601665f0aaddb1c78fb72 Mon Sep 17 00:00:00 2001 From: Yi Lin Date: Mon, 2 Dec 2024 14:55:37 +1300 Subject: [PATCH] Fix warnings for lifetime in MmapAnnotation impl (#1244) https://github.com/mmtk/mmtk-core/pull/1242 fixed most similar issues in the repo, but https://github.com/mmtk/mmtk-core/pull/1236 introduced `MmapAnnotation` and introduced a new warning. --- src/util/memory.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/memory.rs b/src/util/memory.rs index 0e689be6b9..d79905b759 100644 --- a/src/util/memory.rs +++ b/src/util/memory.rs @@ -143,7 +143,7 @@ macro_rules! mmap_anno_test { // Export this to external crates pub use mmap_anno_test; -impl<'a> std::fmt::Display for MmapAnnotation<'a> { +impl std::fmt::Display for MmapAnnotation<'_> { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match self { MmapAnnotation::Space { name } => write!(f, "mmtk:space:{name}"),