Skip to content

Commit c7d07f1

Browse files
committed
FIX: Use repr(transparent) on &str wrapper in benchmark
This is best practice and stable since Rust 1.28.
1 parent 634c503 commit c7d07f1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

benches/faststring.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ use std::borrow::Borrow;
2121
use std::ops::Deref;
2222

2323
#[derive(PartialEq, Eq, Copy, Clone)]
24+
#[repr(transparent)]
2425
pub struct OneShot<T: ?Sized>(pub T);
2526

2627
impl Hash for OneShot<str>

0 commit comments

Comments
 (0)