summaryrefslogtreecommitdiff
path: root/rust/src
diff options
context:
space:
mode:
Diffstat (limited to 'rust/src')
-rw-r--r--rust/src/collaboration/file.rs4
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(())
}