File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed
examples/raw-window-handle-with-wgpu Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ fn main() -> Result<(), String> {
99
99
mask : !0 ,
100
100
alpha_to_coverage_enabled : false ,
101
101
} ,
102
- multiview : None
102
+ multiview : None ,
103
103
} ) ;
104
104
105
105
let mut config = wgpu:: SurfaceConfiguration {
@@ -138,17 +138,17 @@ fn main() -> Result<(), String> {
138
138
}
139
139
140
140
let mut frame = match surface. get_current_texture ( ) {
141
- Ok ( frame) => { frame} ,
142
- Err ( err) => {
143
- let reason = match ( err) {
144
- SurfaceError :: Timeout => { "Timeout" }
145
- SurfaceError :: Outdated => { "Outdated" }
146
- SurfaceError :: Lost => { "Lost" }
147
- SurfaceError :: OutOfMemory => { "OutOfMemory" }
148
- } ;
149
- panic ! ( "Failed to get current surface texture! Reason: {}" , reason)
150
- }
151
- } ;
141
+ Ok ( frame) => frame,
142
+ Err ( err) => {
143
+ let reason = match ( err) {
144
+ SurfaceError :: Timeout => "Timeout" ,
145
+ SurfaceError :: Outdated => "Outdated" ,
146
+ SurfaceError :: Lost => "Lost" ,
147
+ SurfaceError :: OutOfMemory => "OutOfMemory" ,
148
+ } ;
149
+ panic ! ( "Failed to get current surface texture! Reason: {}" , reason)
150
+ }
151
+ } ;
152
152
153
153
let output = frame
154
154
. texture
You can’t perform that action at this time.
0 commit comments