Make FnPtr::fn_name_raw const.
This commit is contained in:
@@ -106,12 +106,25 @@ impl From<String> for ImmutableString {
|
||||
}
|
||||
}
|
||||
#[cfg(not(feature = "no_smartstring"))]
|
||||
impl From<&SmartString> for ImmutableString {
|
||||
#[inline(always)]
|
||||
fn from(value: &SmartString) -> Self {
|
||||
Self(Into::<SmartString>::into(value.as_str()).into())
|
||||
}
|
||||
}
|
||||
#[cfg(not(feature = "no_smartstring"))]
|
||||
impl From<SmartString> for ImmutableString {
|
||||
#[inline(always)]
|
||||
fn from(value: SmartString) -> Self {
|
||||
Self(value.into())
|
||||
}
|
||||
}
|
||||
impl From<&ImmutableString> for SmartString {
|
||||
#[inline(always)]
|
||||
fn from(value: &ImmutableString) -> Self {
|
||||
value.as_str().into()
|
||||
}
|
||||
}
|
||||
impl From<ImmutableString> for SmartString {
|
||||
#[inline(always)]
|
||||
fn from(mut value: ImmutableString) -> Self {
|
||||
|
Reference in New Issue
Block a user