Skip to content

Commit a10e626

Browse files
style(core): delimit pipeline's items with two newlines
1 parent 665c075 commit a10e626

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
@@ -100,6 +100,7 @@ pub struct ShaderError<E> {
100100
pub label: Option<String>,
101101
pub inner: Box<E>,
102102
}
103+
103104
#[cfg(feature = "wgsl")]
104105
impl fmt::Display for ShaderError<naga::front::wgsl::ParseError> {
105106
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
@@ -108,6 +109,7 @@ impl fmt::Display for ShaderError<naga::front::wgsl::ParseError> {
108109
write!(f, "\nShader '{label}' parsing {string}")
109110
}
110111
}
112+
111113
#[cfg(feature = "glsl")]
112114
impl fmt::Display for ShaderError<naga::front::glsl::ParseError> {
113115
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
@@ -124,6 +126,7 @@ impl fmt::Display for ShaderError<naga::front::spv::Error> {
124126
write!(f, "\nShader '{label}' parsing {string}")
125127
}
126128
}
129+
127130
impl fmt::Display for ShaderError<naga::WithSpan<naga::valid::ValidationError>> {
128131
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
129132
use codespan_reporting::{
@@ -155,6 +158,7 @@ impl fmt::Display for ShaderError<naga::WithSpan<naga::valid::ValidationError>>
155158
)
156159
}
157160
}
161+
158162
impl<E> Error for ShaderError<E>
159163
where
160164
ShaderError<E>: fmt::Display,

0 commit comments

Comments
 (0)