Skip to content

Commit 3d7bc11

Browse files
authored
Fix warnings for lifetime in MmapAnnotation impl (#1244)
#1242 fixed most similar issues in the repo, but #1236 introduced `MmapAnnotation` and introduced a new warning.
1 parent cd2fe83 commit 3d7bc11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/memory.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ macro_rules! mmap_anno_test {
143143
// Export this to external crates
144144
pub use mmap_anno_test;
145145

146-
impl<'a> std::fmt::Display for MmapAnnotation<'a> {
146+
impl std::fmt::Display for MmapAnnotation<'_> {
147147
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
148148
match self {
149149
MmapAnnotation::Space { name } => write!(f, "mmtk:space:{name}"),

0 commit comments

Comments
 (0)