Skip to content

Commit

Permalink
chore: rename
Browse files Browse the repository at this point in the history
  • Loading branch information
vaind committed Dec 6, 2022
1 parent ad08495 commit 903a645
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion symbolic-debuginfo/src/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -473,8 +473,9 @@ impl<'data> FileInfo<'data> {
}

/// Creates a `FileInfo` from a joined path by trying to split it.
/// Unlike from_path(), copies the given data instead of referencing it.
#[cfg(feature = "ppdb")]
pub(crate) fn from_path_clone(path: &[u8]) -> Self {
pub(crate) fn from_path_owned(path: &[u8]) -> Self {
let (dir, name) = symbolic_common::split_path_bytes(path);

FileInfo {
Expand Down
2 changes: 1 addition & 1 deletion symbolic-debuginfo/src/ppdb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ impl<'s> Iterator for PortablePdbFileIterator<'s> {
};
Some(Ok(FileEntry::new(
Cow::default(),
FileInfo::from_path_clone(document.name.as_bytes()),
FileInfo::from_path_owned(document.name.as_bytes()),
)))
}
}

0 comments on commit 903a645

Please sign in to comment.