Unnamed repository; edit this file 'description' to name the repository.
fix clone regression
test bench::bench_derive_clone ... bench: 454,318 ns/iter (+/- 11,401) test bench::bench_match_clone ... bench: 183,570 ns/iter (+/- 10,652) test bench::bench_new_clone ... bench: 177,907 ns/iter (+/- 2,234)
Anton Sol 2024-02-01
parent 471f1b6 · commit 6df2f06
-rw-r--r--lib/smol_str/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/smol_str/src/lib.rs b/lib/smol_str/src/lib.rs
index e5521944c3..654ed660ef 100644
--- a/lib/smol_str/src/lib.rs
+++ b/lib/smol_str/src/lib.rs
@@ -503,12 +503,12 @@ enum InlineSize {
#[derive(Clone, Debug)]
enum Repr {
- Heap(Arc<str>),
- Static(&'static str),
Inline {
len: InlineSize,
buf: [u8; INLINE_CAP],
},
+ Static(&'static str),
+ Heap(Arc<str>),
}
impl Repr {