add blank lines & returned output type comment to AddSpan

This commit is contained in:
@brody4hire - C. Jonathan Brody
2025-01-29 19:30:19 -05:00
committed by Connor Fitzgerald
parent d7ed0c5290
commit 1f2cc66f4e

View File

@@ -314,7 +314,9 @@ impl<E> WithSpan<E> {
/// Convenience trait for [`Error`] to be able to apply spans to anything.
pub(crate) trait AddSpan: Sized {
/// The returned output type.
type Output;
/// See [`WithSpan::new`].
fn with_span(self) -> Self::Output;
/// See [`WithSpan::with_span`].
@@ -330,6 +332,7 @@ where
E: Error,
{
type Output = WithSpan<Self>;
fn with_span(self) -> WithSpan<Self> {
WithSpan::new(self)
}