Skip to content

Commit c506cfd

Browse files
committed
[Rust] Impl Send and Sync for RemoteFile
1 parent a1bc164 commit c506cfd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

rust/src/collaboration/file.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,7 @@ impl PartialEq for RemoteFile {
584584
self.id() == other.id()
585585
}
586586
}
587+
587588
impl Eq for RemoteFile {}
588589

589590
impl ToOwned for RemoteFile {
@@ -594,6 +595,9 @@ impl ToOwned for RemoteFile {
594595
}
595596
}
596597

598+
unsafe impl Send for RemoteFile {}
599+
unsafe impl Sync for RemoteFile {}
600+
597601
unsafe impl RefCountable for RemoteFile {
598602
unsafe fn inc_ref(handle: &Self) -> Ref<Self> {
599603
Ref::new(Self {

0 commit comments

Comments
 (0)