Skip to content

Commit aab8b66

Browse files
kariyreitermarkus
authored andcommitted
feat(string): make from_utf8_unchecked const
1 parent 96af9f7 commit aab8b66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/string/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ impl<const N: usize> String<N> {
237237
/// assert_eq!("💖", sparkle_heart);
238238
/// ```
239239
#[inline]
240-
pub unsafe fn from_utf8_unchecked(vec: Vec<u8, N>) -> Self {
240+
pub const unsafe fn from_utf8_unchecked(vec: Vec<u8, N>) -> Self {
241241
Self { vec }
242242
}
243243

0 commit comments

Comments
 (0)