From 6f3b45983d7499e6ad436b5d8a68c0eaf32ee2b6 Mon Sep 17 00:00:00 2001 From: Shane Vandegrift Date: Tue, 23 Apr 2024 20:57:19 -0400 Subject: [PATCH] use compact string --- stack-core/src/symbol.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stack-core/src/symbol.rs b/stack-core/src/symbol.rs index 951c2091..56b66fe2 100644 --- a/stack-core/src/symbol.rs +++ b/stack-core/src/symbol.rs @@ -1,6 +1,6 @@ use core::{borrow::Borrow, fmt, hash::Hash}; -use compact_str::CompactString; +use compact_str::{CompactString, ToCompactString}; use internment::Intern; use crate::expr::ExprKind; @@ -41,6 +41,6 @@ impl fmt::Display for Symbol { impl From for Symbol { fn from(value: ExprKind) -> Self { - Self::from_ref(value.to_string().as_str()) + Self::from_ref(value.to_compact_string().as_str()) } }