diff options
| author | Mason Reed <mason@vector35.com> | 2026-02-09 17:00:22 -0800 |
|---|---|---|
| committer | Mason Reed <35282038+emesare@users.noreply.github.com> | 2026-02-23 00:09:44 -0800 |
| commit | d64f392bc90d6057ef6df62229b0ef6d354a67a1 (patch) | |
| tree | 741f0eb9d069e73a17ff8698ef85f1926fce4f43 /rust/src/collaboration | |
| parent | 6f6c8465102907703f8caedc3e151bfb080893c8 (diff) | |
[Rust] Fix unbalanced ref returned in `RemoteFile::core_file`
Diffstat (limited to 'rust/src/collaboration')
| -rw-r--r-- | rust/src/collaboration/file.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/src/collaboration/file.rs b/rust/src/collaboration/file.rs index 993e6bc9..46e27ea5 100644 --- a/rust/src/collaboration/file.rs +++ b/rust/src/collaboration/file.rs @@ -57,10 +57,10 @@ impl RemoteFile { RemoteFile::get_for_local_database(&database) } - pub fn core_file(&self) -> Result<ProjectFile, ()> { + pub fn core_file(&self) -> Result<Ref<ProjectFile>, ()> { let result = unsafe { BNRemoteFileGetCoreFile(self.handle.as_ptr()) }; NonNull::new(result) - .map(|handle| unsafe { ProjectFile::from_raw(handle) }) + .map(|handle| unsafe { ProjectFile::ref_from_raw(handle) }) .ok_or(()) } |
