From 1f2cc66f4ed87efda5ddb2cd088bdb7dc3af6997 Mon Sep 17 00:00:00 2001 From: "@brody4hire - C. Jonathan Brody" Date: Wed, 29 Jan 2025 19:30:19 -0500 Subject: [PATCH] add blank lines & returned output type comment to AddSpan --- naga/src/span.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/naga/src/span.rs b/naga/src/span.rs index 3196fb9fe5..dafc78dc40 100644 --- a/naga/src/span.rs +++ b/naga/src/span.rs @@ -314,7 +314,9 @@ impl WithSpan { /// 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; + fn with_span(self) -> WithSpan { WithSpan::new(self) }