diff options
| author | Mason Reed <mason@vector35.com> | 2025-08-20 13:45:38 -0400 |
|---|---|---|
| committer | Mason Reed <mason@vector35.com> | 2025-08-20 13:45:38 -0400 |
| commit | 55b35dfbcf181797ef91c9b8d5a22638a1dfb0c6 (patch) | |
| tree | fb4daf7207120757741557d70958dafc44351304 /rust/src | |
| parent | 9faef8acb5aaa50199f5aa503f6f5298e3bdc8db (diff) | |
[Rust] Fix misc inconsistencies in `2ba29fd`
Diffstat (limited to 'rust/src')
| -rw-r--r-- | rust/src/project.rs | 2 | ||||
| -rw-r--r-- | rust/src/project/file.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/rust/src/project.rs b/rust/src/project.rs index d276e532..c268d613 100644 --- a/rust/src/project.rs +++ b/rust/src/project.rs @@ -578,7 +578,7 @@ impl Project { /// Retrieve a list of files in the project by the `path` inside the project. /// /// Because a [`ProjectFile`] name is not unique, this returns a list instead of a single [`ProjectFile`]. - pub fn files_by_path_in_project(&self, path: &Path) -> Array<ProjectFile> { + pub fn files_by_project_path(&self, path: &Path) -> Array<ProjectFile> { let path_raw = path.to_cstr(); let mut count = 0; let result = unsafe { 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<PathBuf> { + 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 |
