Skip to content

Commit afe1bb2

Browse files
committed
Fix warnings for lifetime in MmapAnnotation impl
1 parent cd2fe83 commit afe1bb2

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)