Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'lib/smol_str/src/lib.rs')
-rw-r--r--lib/smol_str/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/smol_str/src/lib.rs b/lib/smol_str/src/lib.rs
index e4cca47176..bdd228b89a 100644
--- a/lib/smol_str/src/lib.rs
+++ b/lib/smol_str/src/lib.rs
@@ -317,7 +317,7 @@ where
impl From<SmolStr> for String {
fn from(text: SmolStr) -> Self {
- text.to_string()
+ text.as_str().into()
}
}