Skip to content

Commit

Permalink
make as_str helper const
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronvoell committed Jul 1, 2024
1 parent 7d1e169 commit 519e0c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xmtp_mls/src/groups/group_mutable_metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 519e0c3

Please sign in to comment.