Skip to content

Commit

Permalink
warning: associated const needs explicit lifetime.
Browse files Browse the repository at this point in the history
This is a new warning in an upcoming version of Rust:

```
warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
note: for more information, see issue #115010 <rust-lang/rust#115010>
```
  • Loading branch information
waywardmonkeys committed Sep 4, 2023
1 parent 60613d0 commit 9afb3af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/calendar/src/japanese.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ impl Japanese {
self.new_japanese_date_inner(era, year, month, day)
}

pub(crate) const DEBUG_NAME: &str = "Japanese";
pub(crate) const DEBUG_NAME: &'static str = "Japanese";
}

impl JapaneseExtended {
Expand Down Expand Up @@ -206,7 +206,7 @@ impl JapaneseExtended {
}))
}

pub(crate) const DEBUG_NAME: &str = "Japanese (historical era data)";
pub(crate) const DEBUG_NAME: &'static str = "Japanese (historical era data)";
}

impl Calendar for Japanese {
Expand Down

0 comments on commit 9afb3af

Please sign in to comment.