File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -578,7 +578,7 @@ impl Project {
578
578
/// Retrieve a list of files in the project by the `path` inside the project.
579
579
///
580
580
/// Because a [`ProjectFile`] name is not unique, this returns a list instead of a single [`ProjectFile`].
581
- pub fn files_by_path_in_project ( & self , path : & Path ) -> Array < ProjectFile > {
581
+ pub fn files_by_project_path ( & self , path : & Path ) -> Array < ProjectFile > {
582
582
let path_raw = path. to_cstr ( ) ;
583
583
let mut count = 0 ;
584
584
let result = unsafe {
Original file line number Diff line number Diff line change @@ -47,10 +47,10 @@ impl ProjectFile {
47
47
}
48
48
49
49
/// Get the path in the project to this file's contents
50
- pub fn path_in_project ( & self ) -> Option < PathBuf > {
50
+ pub fn path_in_project ( & self ) -> PathBuf {
51
51
let path_str =
52
52
unsafe { BnString :: into_string ( BNProjectFileGetPathInProject ( self . handle . as_ptr ( ) ) ) } ;
53
- Some ( PathBuf :: from ( path_str) )
53
+ PathBuf :: from ( path_str)
54
54
}
55
55
56
56
/// Check if this file's contents exist on disk
You can’t perform that action at this time.
0 commit comments