From eb55b2e48f68eb15902aae43aa6578117dccbc20 Mon Sep 17 00:00:00 2001 From: Georgy Moshkin <gmoshkin@picodata.io> Date: Tue, 18 Oct 2022 16:25:36 +0300 Subject: [PATCH] fix: as_str returns &'static str --- src/util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.rs b/src/util.rs index ce3bc6c099..96de88fdb7 100644 --- a/src/util.rs +++ b/src/util.rs @@ -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, )+ } -- GitLab