From 519e0c30e0a7a4df1fdeea91c04dcba0422e3032 Mon Sep 17 00:00:00 2001 From: cameronvoell Date: Mon, 1 Jul 2024 09:38:06 -0700 Subject: [PATCH] make as_str helper const --- xmtp_mls/src/groups/group_mutable_metadata.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmtp_mls/src/groups/group_mutable_metadata.rs b/xmtp_mls/src/groups/group_mutable_metadata.rs index a688e1ad5..64f46ab4a 100644 --- a/xmtp_mls/src/groups/group_mutable_metadata.rs +++ b/xmtp_mls/src/groups/group_mutable_metadata.rs @@ -45,7 +45,7 @@ pub enum MetadataField { } impl MetadataField { - pub fn as_str(&self) -> &'static str { + pub const fn as_str(&self) -> &'static str { match self { MetadataField::GroupName => "group_name", MetadataField::Description => "description",