Skip to content

Commit c63ffcd

Browse files
style(core): delimit pipeline's items with two newlines
1 parent 1144b06 commit c63ffcd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

wgpu-core/src/pipeline.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ pub struct ShaderError<E> {
113113
pub label: Option<String>,
114114
pub inner: Box<E>,
115115
}
116+
116117
#[cfg(feature = "wgsl")]
117118
impl fmt::Display for ShaderError<naga::front::wgsl::ParseError> {
118119
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
@@ -121,6 +122,7 @@ impl fmt::Display for ShaderError<naga::front::wgsl::ParseError> {
121122
write!(f, "\nShader '{label}' parsing {string}")
122123
}
123124
}
125+
124126
#[cfg(feature = "glsl")]
125127
impl fmt::Display for ShaderError<naga::front::glsl::ParseError> {
126128
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
@@ -137,6 +139,7 @@ impl fmt::Display for ShaderError<naga::front::spv::Error> {
137139
write!(f, "\nShader '{label}' parsing {string}")
138140
}
139141
}
142+
140143
impl fmt::Display for ShaderError<naga::WithSpan<naga::valid::ValidationError>> {
141144
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
142145
use codespan_reporting::{
@@ -168,6 +171,7 @@ impl fmt::Display for ShaderError<naga::WithSpan<naga::valid::ValidationError>>
168171
)
169172
}
170173
}
174+
171175
impl<E> Error for ShaderError<E>
172176
where
173177
ShaderError<E>: fmt::Display,

0 commit comments

Comments
 (0)