Skip to content

Commit

Permalink
bevy_render: Allw unused variable that is only used by non-default fe…
Browse files Browse the repository at this point in the history
…atures
  • Loading branch information
superdump committed Feb 13, 2022
1 parent 5f73672 commit c06b81d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_render/src/texture/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ impl Image {
pub fn from_buffer(
buffer: &[u8],
image_type: ImageType,
supported_compressed_formats: CompressedImageFormats,
#[allow(unused_variables)] supported_compressed_formats: CompressedImageFormats,
is_srgb: bool,
) -> Result<Image, TextureError> {
let format = image_type.to_image_format()?;
Expand Down

0 comments on commit c06b81d

Please sign in to comment.