mirror of https://github.com/zkat/miette.git
Revert "remove redundant NamedSource::name (shadows new SourceCode::name)"
This reverts commit 9f18e69f6e0e9e670d56c8eec66937d62f0bc0da.
This commit is contained in:
parent
9c019a87af
commit
8b2407e509
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue