Skip to content

Commit 541f49a

Browse files
committed
cargo fmt
1 parent 6195894 commit 541f49a

File tree

1 file changed

+12
-12
lines changed
  • examples/raw-window-handle-with-wgpu

1 file changed

+12
-12
lines changed

examples/raw-window-handle-with-wgpu/main.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ fn main() -> Result<(), String> {
9999
mask: !0,
100100
alpha_to_coverage_enabled: false,
101101
},
102-
multiview: None
102+
multiview: None,
103103
});
104104

105105
let mut config = wgpu::SurfaceConfiguration {
@@ -138,17 +138,17 @@ fn main() -> Result<(), String> {
138138
}
139139

140140
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+
};
152152

153153
let output = frame
154154
.texture

0 commit comments

Comments
 (0)