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)
diff --git a/src/lib.rs b/src/lib.rs
index e552194..654ed66 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -503,12 +503,12 @@
#[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 {