Fixup requested changes

pull/472/head
Sean Krueger 9 months ago committed by GitHub
parent d74c206d8c
commit d5070ec8e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -207,7 +207,7 @@ Regardless, `PresentMode::Fifo` will always be supported, and `PresentMode::Auto
Now that we've configured our surface properly we can add these new fields at the end of the method. Now that we've configured our surface properly we can add these new fields at the end of the method.
```rust ```rust
async fn new(window: &Window) -> Self { async fn new(window: Window) -> Self {
// ... // ...
Self { Self {
@ -261,7 +261,7 @@ Now that `run()` is async, `main()` will need some way to await the future. We c
```toml ```toml
[dependencies] [dependencies]
# other deps... # other deps...
pollster = "0.2" pollster = "0.3"
``` ```
We then use the `block_on` function provided by pollster to await our future: We then use the `block_on` function provided by pollster to await our future:

Loading…
Cancel
Save