From 55b35dfbcf181797ef91c9b8d5a22638a1dfb0c6 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Wed, 20 Aug 2025 13:45:38 -0400 Subject: [Rust] Fix misc inconsistencies in `2ba29fd` --- rust/src/project/file.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rust/src/project') diff --git a/rust/src/project/file.rs b/rust/src/project/file.rs index ae23365a..178a9a65 100644 --- a/rust/src/project/file.rs +++ b/rust/src/project/file.rs @@ -47,10 +47,10 @@ impl ProjectFile { } /// Get the path in the project to this file's contents - pub fn path_in_project(&self) -> Option { + pub fn path_in_project(&self) -> PathBuf { let path_str = unsafe { BnString::into_string(BNProjectFileGetPathInProject(self.handle.as_ptr())) }; - Some(PathBuf::from(path_str)) + PathBuf::from(path_str) } /// Check if this file's contents exist on disk -- cgit v1.3.1