Skip to content

Commit

Permalink
Fix warnings for lifetime in MmapAnnotation impl (#1244)
Browse files Browse the repository at this point in the history
#1242 fixed most similar issues in
the repo, but #1236 introduced
`MmapAnnotation` and introduced a new warning.
  • Loading branch information
qinsoon authored Dec 2, 2024
1 parent cd2fe83 commit 3d7bc11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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}"),
Expand Down

0 comments on commit 3d7bc11

Please sign in to comment.