File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -109,24 +109,25 @@ impl WinitWindows {
109
109
#[ cfg( feature = "x11" ) ]
110
110
let mut winit_window_builder = winit_window_builder. with_class (
111
111
window_descriptor. desktop_instance . clone ( ) , // that's actually wm_instance
112
- window_descriptor. desktop_id . clone ( ) // and that's wm_class
112
+ window_descriptor. desktop_id . clone ( ) , // and that's wm_class
113
113
) ;
114
114
/*
115
115
https://github.com/rust-windowing/winit/blob/ea1c031b54438e64576353b288848c07d2068214/src/platform/unix.rs#L337
116
116
337| fn with_class(self, class: String, instance: String) -> Self;
117
117
https://github.com/rust-windowing/winit/blob/ea1c031b54438e64576353b288848c07d2068214/src/platform/unix.rs#L383
118
118
383| fn with_class(mut self, instance: String, class: String) -> Self {
119
-
119
+
120
120
Because of type equality someone wrote those wrong and Rust didn't catch it!
121
121
rust-analyser uses only trait declaration, therefore it shows wrong parameter names
122
122
123
123
This bug persists not only in 0.26.0, but also in 0.26.1
124
124
The next update will be breaking, no more differentiation between x11 class and wayland appid
125
125
*/
126
-
126
+
127
127
#[ allow( unused_mut) ]
128
128
#[ cfg( feature = "wayland" ) ]
129
- let mut winit_window_builder = winit_window_builder. with_app_id ( window_descriptor. desktop_id . clone ( ) ) ;
129
+ let mut winit_window_builder =
130
+ winit_window_builder. with_app_id ( window_descriptor. desktop_id . clone ( ) ) ;
130
131
131
132
#[ cfg( target_arch = "wasm32" ) ]
132
133
{
You can’t perform that action at this time.
0 commit comments