Skip to content

Commit d74b4e2

Browse files
style(core): delimit pipeline's items with two newlines
1 parent e1baa5a commit d74b4e2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

wgpu-core/src/pipeline.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ pub struct ShaderError<E> {
9595
pub label: Option<String>,
9696
pub inner: Box<E>,
9797
}
98+
9899
#[cfg(feature = "wgsl")]
99100
impl fmt::Display for ShaderError<naga::front::wgsl::ParseError> {
100101
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
@@ -103,6 +104,7 @@ impl fmt::Display for ShaderError<naga::front::wgsl::ParseError> {
103104
write!(f, "\nShader '{label}' parsing {string}")
104105
}
105106
}
107+
106108
impl fmt::Display for ShaderError<naga::WithSpan<naga::valid::ValidationError>> {
107109
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
108110
use codespan_reporting::{
@@ -134,6 +136,7 @@ impl fmt::Display for ShaderError<naga::WithSpan<naga::valid::ValidationError>>
134136
)
135137
}
136138
}
139+
137140
impl<E> Error for ShaderError<E>
138141
where
139142
ShaderError<E>: fmt::Display,

0 commit comments

Comments
 (0)