We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7154cd6 commit b21e94cCopy full SHA for b21e94c
desktop/src/render/graphics_state.rs
@@ -23,7 +23,7 @@ pub(crate) struct GraphicsState {
23
}
24
25
impl GraphicsState {
26
- pub(crate) fn new(window: &Window, context: WgpuContext) -> GraphicsState {
+ pub(crate) fn new(window: &Window, context: WgpuContext) -> Self {
27
let size = window.surface_size();
28
let surface = window.create_surface(context.instance.clone());
29
@@ -163,7 +163,7 @@ impl GraphicsState {
163
164
let wgpu_executor = WgpuExecutor::with_context(context.clone()).expect("Failed to create WgpuExecutor");
165
166
- GraphicsState {
+ Self {
167
surface,
168
context,
169
executor: wgpu_executor,
0 commit comments