diff --git a/kayak_font/src/bevy/font_texture.rs b/kayak_font/src/bevy/font_texture.rs index c2b32ac3ef999183d06b5f291f0c8291a71c683c..964217671157e91ec5c55f68a8211841892f79ca 100644 --- a/kayak_font/src/bevy/font_texture.rs +++ b/kayak_font/src/bevy/font_texture.rs @@ -19,7 +19,7 @@ pub fn init_font_texture( let not_processed_fonts = not_processed.drain(..).collect::<Vec<_>>(); for font_handle in not_processed_fonts { if let Some(font) = fonts.get(&font_handle) { - if let Some(mut texture) = images.get_mut(font.image.get()) { + if let Some(texture) = images.get_mut(font.image.get()) { texture.texture_descriptor.format = TextureFormat::Rgba8Unorm; texture.sampler_descriptor = ImageSampler::Descriptor(SamplerDescriptor { label: Some("Present Sampler"),