File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -797,7 +797,7 @@ impl crate::Adapter<super::Api> for super::Adapter {
797
797
wgt:: TextureFormat :: Bgra8Unorm ,
798
798
] ;
799
799
if surface. supports_srgb ( ) {
800
- formats. extend ( & [
800
+ formats. extend ( [
801
801
wgt:: TextureFormat :: Rgba8UnormSrgb ,
802
802
#[ cfg( not( target_arch = "wasm32" ) ) ]
803
803
wgt:: TextureFormat :: Bgra8UnormSrgb ,
Original file line number Diff line number Diff line change @@ -654,17 +654,17 @@ impl crate::Instance<super::Api> for Instance {
654
654
client_ext_str. split_whitespace( ) . collect:: <Vec <_>>( )
655
655
) ;
656
656
657
- let wayland_library = if client_ext_str. contains ( & "EGL_EXT_platform_wayland" ) {
657
+ let wayland_library = if client_ext_str. contains ( "EGL_EXT_platform_wayland" ) {
658
658
test_wayland_display ( )
659
659
} else {
660
660
None
661
661
} ;
662
- let x11_display_library = if client_ext_str. contains ( & "EGL_EXT_platform_x11" ) {
662
+ let x11_display_library = if client_ext_str. contains ( "EGL_EXT_platform_x11" ) {
663
663
open_x_display ( )
664
664
} else {
665
665
None
666
666
} ;
667
- let angle_x11_display_library = if client_ext_str. contains ( & "EGL_ANGLE_platform_angle" ) {
667
+ let angle_x11_display_library = if client_ext_str. contains ( "EGL_ANGLE_platform_angle" ) {
668
668
open_x_display ( )
669
669
} else {
670
670
None
@@ -731,7 +731,7 @@ impl crate::Instance<super::Api> for Instance {
731
731
} ;
732
732
733
733
if desc. flags . contains ( crate :: InstanceFlags :: VALIDATION )
734
- && client_ext_str. contains ( & "EGL_KHR_debug" )
734
+ && client_ext_str. contains ( "EGL_KHR_debug" )
735
735
{
736
736
log:: info!( "Enabling EGL debug output" ) ;
737
737
let function: EglDebugMessageControlFun =
You can’t perform that action at this time.
0 commit comments