Skip to content

Commit 69377b4

Browse files
authored
[ISSUE #68]Change from pub fn to pub const fn for from_static_str method (#69)
1 parent 2a5b8c1 commit 69377b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cheetah_string.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ impl CheetahString {
227227
}
228228

229229
#[inline]
230-
pub fn from_static_str(s: &'static str) -> Self {
230+
pub const fn from_static_str(s: &'static str) -> Self {
231231
CheetahString {
232232
inner: InnerString::StaticStr(s),
233233
}

0 commit comments

Comments
 (0)