Skip to content

Commit 9afb3af

Browse files
warning: associated const needs explicit lifetime.
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> ```
1 parent 60613d0 commit 9afb3af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/calendar/src/japanese.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ impl Japanese {
169169
self.new_japanese_date_inner(era, year, month, day)
170170
}
171171

172-
pub(crate) const DEBUG_NAME: &str = "Japanese";
172+
pub(crate) const DEBUG_NAME: &'static str = "Japanese";
173173
}
174174

175175
impl JapaneseExtended {
@@ -206,7 +206,7 @@ impl JapaneseExtended {
206206
}))
207207
}
208208

209-
pub(crate) const DEBUG_NAME: &str = "Japanese (historical era data)";
209+
pub(crate) const DEBUG_NAME: &'static str = "Japanese (historical era data)";
210210
}
211211

212212
impl Calendar for Japanese {

0 commit comments

Comments
 (0)