File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -28,9 +28,8 @@ pub struct InstalledBackend {
28
28
impl InstalledBackend {
29
29
/// Creates a new `SpirvBuilder` configured to use this installed backend.
30
30
#[ expect(
31
- clippy:: missing_panics_doc,
32
- clippy:: expect_used,
33
- reason = "unreachable"
31
+ clippy:: unreachable,
32
+ reason = "it's unreachable, no need to return a Result"
34
33
) ]
35
34
#[ expect( clippy:: impl_trait_in_params, reason = "forwarding spirv-builder API" ) ]
36
35
#[ inline]
@@ -41,7 +40,7 @@ impl InstalledBackend {
41
40
) -> SpirvBuilder {
42
41
let mut builder = SpirvBuilder :: new ( path_to_crate, target) ;
43
42
self . configure_spirv_builder ( & mut builder)
44
- . expect ( " unreachable" ) ;
43
+ . unwrap_or_else ( |_| unreachable ! ( "we set target before calling this function" ) ) ;
45
44
builder
46
45
}
47
46
You can’t perform that action at this time.
0 commit comments