We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b353353 commit 185c7d9Copy full SHA for 185c7d9
src/hstring.rs
@@ -461,6 +461,8 @@ impl Drop for HString {
461
}
462
463
464
+unsafe impl Send for HString {}
465
+
466
impl ::std::clone::Clone for HString {
467
#[inline]
468
fn clone(&self) -> Self {
@@ -560,6 +562,15 @@ mod tests {
560
562
use super::*;
561
563
use self::test::Bencher;
564
565
+ #[test]
566
+ fn test_trait_impls() {
567
+ // make sure that all the structs implement `Send`
568
+ fn is_send<T: Send>() {}
569
+ is_send::<HString>();
570
+ is_send::<FastHString>();
571
+ is_send::<HStringReference>();
572
+ }
573
574
#[test]
575
fn check_sizes() {
576
use ::std::mem::size_of;
0 commit comments