diff options
| author | Mason Reed <mason@vector35.com> | 2026-02-11 17:57:36 -0800 |
|---|---|---|
| committer | Mason Reed <35282038+emesare@users.noreply.github.com> | 2026-02-23 00:09:44 -0800 |
| commit | d4a19d793d6d080081f02ff16ac3db3eacc03ace (patch) | |
| tree | 116cde01a238a03f72fe5a03439c3a78d8a27bc3 /rust | |
| parent | c1dbea197a6ba7e3d008e01c8169f5c3702151ea (diff) | |
[Rust] Impl `Send` and `Sync` for `RemoteFile`
Diffstat (limited to 'rust')
| -rw-r--r-- | rust/src/collaboration/file.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rust/src/collaboration/file.rs b/rust/src/collaboration/file.rs index 46e27ea5..dbe2b8b9 100644 --- a/rust/src/collaboration/file.rs +++ b/rust/src/collaboration/file.rs @@ -584,6 +584,7 @@ impl PartialEq for RemoteFile { self.id() == other.id() } } + impl Eq for RemoteFile {} impl ToOwned for RemoteFile { @@ -594,6 +595,9 @@ impl ToOwned for RemoteFile { } } +unsafe impl Send for RemoteFile {} +unsafe impl Sync for RemoteFile {} + unsafe impl RefCountable for RemoteFile { unsafe fn inc_ref(handle: &Self) -> Ref<Self> { Ref::new(Self { |
