File tree 3 files changed +13
-8
lines changed
3 files changed +13
-8
lines changed Original file line number Diff line number Diff line change 6
6
7
7
## 0.3.0 - 2024-09-04
8
8
9
- - Removed deprecated ` SmolStr::new_inline_from_ascii ` function
10
- - Removed ` SmolStr::to_string ` in favor of ` ToString::to_string `
11
- - Added ` impl AsRef<[u8]> for SmolStr ` impl
12
- - Added ` impl AsRef<OsStr> for SmolStr ` impl
13
- - Added ` impl AsRef<Path> for SmolStr ` impl
14
- - Added ` SmolStrBuilder `
9
+ - Remove deprecated ` SmolStr::new_inline_from_ascii ` function
10
+ - Remove ` SmolStr::to_string ` in favor of ` ToString::to_string `
11
+ - Add ` impl AsRef<[u8]> for SmolStr ` impl
12
+ - Add ` impl AsRef<OsStr> for SmolStr ` impl
13
+ - Add ` impl AsRef<Path> for SmolStr ` impl
14
+ - Add ` SmolStrBuilder `
15
+
16
+ ## 0.2.2 - 2024-05-14
17
+
18
+ - Add ` StrExt ` trait providing ` to_lowercase_smolstr ` , ` replace_smolstr ` and similar
19
+ - Add ` PartialEq ` optimization for ` ptr_eq ` -able representations
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ impl BorshDeserialize for SmolStr {
22
22
Error :: new ( ErrorKind :: InvalidData , msg)
23
23
} ) ?;
24
24
Ok ( SmolStr ( Repr :: Inline {
25
- len : unsafe { transmute ( len as u8 ) } ,
25
+ len : unsafe { transmute :: < u8 , crate :: InlineSize > ( len as u8 ) } ,
26
26
buf,
27
27
} ) )
28
28
} else {
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ use core::{
19
19
/// * Strings are stack-allocated if they are:
20
20
/// * Up to 23 bytes long
21
21
/// * Longer than 23 bytes, but substrings of `WS` (see below). Such strings consist
22
- /// solely of consecutive newlines, followed by consecutive spaces
22
+ /// solely of consecutive newlines, followed by consecutive spaces
23
23
/// * If a string does not satisfy the aforementioned conditions, it is heap-allocated
24
24
/// * Additionally, a `SmolStr` can be explicitly created from a `&'static str` without allocation
25
25
///
You can’t perform that action at this time.
0 commit comments