Skip to content

Commit d497298

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

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
@@ -69,6 +69,7 @@ pub struct ShaderError<E> {
6969
pub label: Option<String>,
7070
pub inner: Box<E>,
7171
}
72+
7273
#[cfg(feature = "wgsl")]
7374
impl fmt::Display for ShaderError<naga::front::wgsl::ParseError> {
7475
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
@@ -77,6 +78,7 @@ impl fmt::Display for ShaderError<naga::front::wgsl::ParseError> {
7778
write!(f, "\nShader '{label}' parsing {string}")
7879
}
7980
}
81+
8082
impl fmt::Display for ShaderError<naga::WithSpan<naga::valid::ValidationError>> {
8183
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
8284
use codespan_reporting::{
@@ -108,6 +110,7 @@ impl fmt::Display for ShaderError<naga::WithSpan<naga::valid::ValidationError>>
108110
)
109111
}
110112
}
113+
111114
impl<E> Error for ShaderError<E>
112115
where
113116
ShaderError<E>: fmt::Display,

0 commit comments

Comments
 (0)