From afe1bb24701a0326bd811e18037675ef0d58f00c Mon Sep 17 00:00:00 2001 From: Yi Lin Date: Sun, 1 Dec 2024 23:45:43 +0000 Subject: [PATCH] Fix warnings for lifetime in MmapAnnotation impl --- 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..6e3cc23b80 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}"),