Skip to content

Commit

Permalink
Revert "remove redundant NamedSource::name (shadows new SourceCode::n…
Browse files Browse the repository at this point in the history
…ame)"

This reverts commit 9f18e69.
  • Loading branch information
erratic-pattern committed Nov 19, 2023
1 parent 9c019a8 commit 8b2407e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/named_source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ impl NamedSource {
}
}

/// Gets the name of this `NamedSource`.
pub fn name(&self) -> &str {
&self.name
}

/// Returns a reference the inner [`SourceCode`] type for this
/// `NamedSource`.
pub fn inner(&self) -> &(dyn SourceCode + 'static) {
Expand Down

0 comments on commit 8b2407e

Please sign in to comment.