mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
add blank lines & returned output type comment to AddSpan
This commit is contained in:
committed by
Connor Fitzgerald
parent
d7ed0c5290
commit
1f2cc66f4e
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user