Use more const functions.
This commit is contained in:
@@ -539,7 +539,7 @@ impl ImmutableString {
|
||||
/// Create a new [`ImmutableString`].
|
||||
#[inline(always)]
|
||||
pub fn new() -> Self {
|
||||
Self(SmartString::new().into())
|
||||
Self(SmartString::new_const().into())
|
||||
}
|
||||
/// Consume the [`ImmutableString`] and convert it into a [`String`].
|
||||
/// If there are other references to the same string, a cloned copy is returned.
|
||||
|
Reference in New Issue
Block a user