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 @@ -802,7 +802,7 @@ impl crate::Adapter<super::Api> for super::Adapter {
802
802
wgt:: TextureFormat :: Bgra8Unorm ,
803
803
] ;
804
804
if surface. supports_srgb ( ) {
805
- formats. extend ( & [
805
+ formats. extend ( [
806
806
wgt:: TextureFormat :: Rgba8UnormSrgb ,
807
807
#[ cfg( not( target_arch = "wasm32" ) ) ]
808
808
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