diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-05-11 14:19:19 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-05-11 14:21:43 +0200 |
| commit | 27771bc329ab23cc551637fb3feac7b5689e64c7 (patch) | |
| tree | 383bfeadf9981bca48a9cc46adc2f1b8f46f871e /src/doc.rs | |
| parent | 8ac7be95e660da3e67ac499410450793eaa18429 (diff) | |
Let `Document` be `Sync` again
Fixes #930.
Diffstat (limited to 'src/doc.rs')
| -rw-r--r-- | src/doc.rs | 17 |
1 files changed, 8 insertions, 9 deletions
@@ -683,20 +683,19 @@ cast_to_value! { #[cfg(test)] mod tests { - use crate::{doc::Region, util::option_eq}; - - #[test] - fn test_partialeq_str() { - let region = Region([b'U', b'S']); - assert_eq!(region, "US"); - assert_ne!(region, "AB"); - } + use super::*; + use crate::util::option_eq; #[test] fn test_region_option_eq() { let region = Some(Region([b'U', b'S'])); - assert!(option_eq(region, "US")); assert!(!option_eq(region, "AB")); } + + #[test] + fn test_document_is_send() { + fn ensure_send<T: Send>() {} + ensure_send::<Document>(); + } } |
