Skip to content

Commit

Permalink
use compact string
Browse files Browse the repository at this point in the history
  • Loading branch information
Vandesm14 committed Apr 24, 2024
1 parent 292b5a7 commit 68ea7be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stack-core/src/symbol.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -41,6 +41,6 @@ impl fmt::Display for Symbol {

impl From<ExprKind> for Symbol {
fn from(value: ExprKind) -> Self {
Self::from_ref(value.to_string().as_str())
Self::from_ref(value.to_compact_string().as_str())
}
}

0 comments on commit 68ea7be

Please sign in to comment.