mirror of https://github.com/zkat/miette.git
remove redundant NamedSource::name (shadows new SourceCode::name)
This commit is contained in:
parent
6bf9ff4775
commit
2906e58b59
|
|
@ -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
|
/// Returns a reference the inner [`SourceCode`] type for this
|
||||||
/// `NamedSource`.
|
/// `NamedSource`.
|
||||||
pub fn inner(&self) -> &(dyn SourceCode + 'static) {
|
pub fn inner(&self) -> &(dyn SourceCode + 'static) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue