Skip to content

Commit ddb6ad5

Browse files
committed
Fix clippy lint.
1 parent e5dbf5d commit ddb6ad5

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

src/pipeline.rs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -148,13 +148,12 @@ impl SpecializedMeshPipeline for OutlinePipeline {
148148
if key.msaa() != Msaa::Off {
149149
fragment_defs.push(ShaderDefVal::from("MSAA"));
150150
}
151-
match (key.pass_type(), key.depth_mode()) {
152-
(PassType::Stencil | PassType::Volume, DepthMode::Flat) => {
153-
let val = ShaderDefVal::from("FLAT_DEPTH");
154-
vertex_defs.push(val.clone());
155-
fragment_defs.push(val);
156-
}
157-
_ => {}
151+
if let (PassType::Stencil | PassType::Volume, DepthMode::Flat) =
152+
(key.pass_type(), key.depth_mode())
153+
{
154+
let val = ShaderDefVal::from("FLAT_DEPTH");
155+
vertex_defs.push(val.clone());
156+
fragment_defs.push(val);
158157
};
159158
let cull_mode = match (key.pass_type(), key.depth_mode()) {
160159
(PassType::Stencil, DepthMode::Real) => Some(Face::Back),

0 commit comments

Comments
 (0)