Skip to content

Commit

Permalink
remove redundant NamedSource::name (shadows new SourceCode::name)
Browse files Browse the repository at this point in the history
  • Loading branch information
erratic-pattern committed Nov 11, 2023
1 parent 9486290 commit 9f18e69
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/named_source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ 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 9f18e69

Please sign in to comment.