Skip to content

Commit

Permalink
Fix clippy in wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
nanoqsh committed Jun 3, 2024
1 parent e591d71 commit 69cd1c6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dunge/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ use {
use wgpu::Adapter;

pub(crate) struct State {
#[cfg(feature = "winit")]
instance: Instance,
#[cfg(feature = "winit")]
adapter: Adapter,
Expand Down Expand Up @@ -63,6 +64,7 @@ impl State {
};

Ok(Self {
#[cfg(feature = "winit")]
instance,
#[cfg(feature = "winit")]
adapter,
Expand All @@ -72,6 +74,7 @@ impl State {
})
}

#[cfg(feature = "winit")]
pub fn instance(&self) -> &Instance {
&self.instance
}
Expand Down

0 comments on commit 69cd1c6

Please sign in to comment.