Skip to content

Commit b21e94c

Browse files
use self
1 parent 7154cd6 commit b21e94c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

desktop/src/render/graphics_state.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ pub(crate) struct GraphicsState {
2323
}
2424

2525
impl GraphicsState {
26-
pub(crate) fn new(window: &Window, context: WgpuContext) -> GraphicsState {
26+
pub(crate) fn new(window: &Window, context: WgpuContext) -> Self {
2727
let size = window.surface_size();
2828
let surface = window.create_surface(context.instance.clone());
2929

@@ -163,7 +163,7 @@ impl GraphicsState {
163163

164164
let wgpu_executor = WgpuExecutor::with_context(context.clone()).expect("Failed to create WgpuExecutor");
165165

166-
GraphicsState {
166+
Self {
167167
surface,
168168
context,
169169
executor: wgpu_executor,

0 commit comments

Comments
 (0)