Skip to content

Commit

Permalink
"Resolve" the warnings detected by CI
Browse files Browse the repository at this point in the history
  • Loading branch information
DJMcNab committed Feb 14, 2024
1 parent c1d21d9 commit e5b3774
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/shaders/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ pub enum BindType {
}

impl BindType {
// TODO: This is a public method, which means it definitely is not
// "dead code". However, rustc seems insitent that it is, and so to not
// block forward progress, I shall humour it
#[allow(dead_code)]
pub fn is_mutable(self) -> bool {
matches!(self, Self::Buffer | Self::Image)
}
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ impl AaSupport {
/// Renders a scene into a texture or surface.
#[cfg(feature = "wgpu")]
pub struct Renderer {
#[cfg_attr(not(feature = "hot_reload"), allow(dead_code))]
options: RendererOptions,
engine: WgpuEngine,
shaders: FullShaders,
Expand Down

0 comments on commit e5b3774

Please sign in to comment.