Skip to content

Commit c7330a8

Browse files
style(naga): add whitespace b/w items in naga::error (#7558)
1 parent 2f409a8 commit c7330a8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

naga/src/error.rs

+4
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ impl fmt::Display for ShaderError<crate::front::wgsl::ParseError> {
1717
write!(f, "\nShader '{label}' parsing {string}")
1818
}
1919
}
20+
2021
#[cfg(feature = "glsl-in")]
2122
impl fmt::Display for ShaderError<crate::front::glsl::ParseErrors> {
2223
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
@@ -25,6 +26,7 @@ impl fmt::Display for ShaderError<crate::front::glsl::ParseErrors> {
2526
write!(f, "\nShader '{label}' parsing {string}")
2627
}
2728
}
29+
2830
#[cfg(feature = "spv-in")]
2931
impl fmt::Display for ShaderError<crate::front::spv::Error> {
3032
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
@@ -33,6 +35,7 @@ impl fmt::Display for ShaderError<crate::front::spv::Error> {
3335
write!(f, "\nShader '{label}' parsing {string}")
3436
}
3537
}
38+
3639
impl fmt::Display for ShaderError<crate::WithSpan<crate::valid::ValidationError>> {
3740
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
3841
use codespan_reporting::{files::SimpleFile, term};
@@ -50,6 +53,7 @@ impl fmt::Display for ShaderError<crate::WithSpan<crate::valid::ValidationError>
5053
)
5154
}
5255
}
56+
5357
impl<E> Error for ShaderError<E>
5458
where
5559
ShaderError<E>: fmt::Display,

0 commit comments

Comments
 (0)