Skip to content
Snippets Groups Projects
Commit eb55b2e4 authored by Georgy Moshkin's avatar Georgy Moshkin :speech_balloon: Committed by Georgy Moshkin
Browse files

fix: as_str returns &'static str

parent e23661ba
No related branches found
No related tags found
1 merge request!299Feat/poor mans vshard
......@@ -164,7 +164,7 @@ macro_rules! define_str_enum {
}
impl $enum {
pub const fn as_str(&self) -> &str {
pub const fn as_str(&self) -> &'static str {
match self {
$( Self::$space => $str, )+
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment