Skip to content

Commit

Permalink
Update symbolic-ppdb/src/format/mod.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Arpad Borsos <swatinem@swatinem.de>
  • Loading branch information
vaind and Swatinem authored Dec 15, 2022
1 parent debbbe7 commit dbdde4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions symbolic-ppdb/src/format/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -409,8 +409,8 @@ pub struct EmbeddedSource<'data> {

impl<'data, 'object> EmbeddedSource<'data> {
/// Returns the build-time path associated with this source file.
pub fn get_path(&'object self) -> Cow<'object, str> {
Cow::Borrowed(self.document.name.as_str())
pub fn get_path(&'object self) -> &'object str {
self.document.name.as_str()
}

/// Reads the source file contents from the Portable PDB.
Expand Down

0 comments on commit dbdde4e

Please sign in to comment.