File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -384,17 +384,14 @@ impl BackendBuilder {
384384 }
385385 #[ cfg( feature = "renderer-femtovg-wgpu" ) ]
386386 ( Some ( "femtovg-wgpu" ) , maybe_graphics_api) => {
387- if !maybe_graphics_api . is_some_and ( | _api| {
387+ if let Some ( _api) = maybe_graphics_api {
388388 #[ cfg( feature = "unstable-wgpu-27" ) ]
389- if matches ! ( _api, RequestedGraphicsAPI :: WGPU27 ( ..) ) {
390- return true ;
389+ if !matches ! ( _api, RequestedGraphicsAPI :: WGPU27 ( ..) ) {
390+ return Err (
391+ "The FemtoVG WGPU renderer only supports the WGPU27 graphics API selection"
392+ . into ( ) ,
393+ ) ;
391394 }
392- false
393- } ) {
394- return Err (
395- "The FemtoVG WGPU renderer only supports the WGPU27 graphics API selection"
396- . into ( ) ,
397- ) ;
398395 }
399396 renderer:: femtovg:: WGPUFemtoVGRenderer :: new_suspended
400397 }
You can’t perform that action at this time.
0 commit comments