We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
RemoteFile::core_file
1 parent 6e6df28 commit 9eaa937Copy full SHA for 9eaa937
rust/src/collaboration/file.rs
@@ -57,10 +57,10 @@ impl RemoteFile {
57
RemoteFile::get_for_local_database(&database)
58
}
59
60
- pub fn core_file(&self) -> Result<ProjectFile, ()> {
+ pub fn core_file(&self) -> Result<Ref<ProjectFile>, ()> {
61
let result = unsafe { BNRemoteFileGetCoreFile(self.handle.as_ptr()) };
62
NonNull::new(result)
63
- .map(|handle| unsafe { ProjectFile::from_raw(handle) })
+ .map(|handle| unsafe { ProjectFile::ref_from_raw(handle) })
64
.ok_or(())
65
66
0 commit comments