diff --git a/CHANGELOG.md b/CHANGELOG.md index 6586b38f..daa864c5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,6 +37,10 @@ Enhancements * Added `log10()` for `Decimal`. * `ln` for `Decimal` is now checked and won't panic. +### String Values + +* `SmartString` now uses `LazyCompact` instead of `Compact` to minimize allocations. + ### `Scope` API * `Scope::set_value` now takes anything that implements `Into>`. diff --git a/src/lib.rs b/src/lib.rs index dd704991..413af829 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -321,7 +321,7 @@ type StaticVec = smallvec::SmallVec<[T; 3]>; pub type StaticVec = smallvec::SmallVec<[T; 3]>; #[cfg(not(feature = "no_smartstring"))] -pub(crate) type SmartString = smartstring::SmartString; +pub(crate) type SmartString = smartstring::SmartString; #[cfg(feature = "no_smartstring")] pub(crate) type SmartString = String;