Fix cargo lint issues

This commit is contained in:
Héctor Ramón Jiménez 2025-03-24 19:36:02 +01:00
parent 576dd22733
commit af6b8155c6
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
2 changed files with 3 additions and 3 deletions

View file

@ -238,7 +238,7 @@ impl Renderer {
let view = texture.create_view(&wgpu::TextureViewDescriptor::default());
let mut encoder = self.draw(Some(background_color), &view, &viewport);
let mut encoder = self.draw(Some(background_color), &view, viewport);
let texture = crate::color::convert(
&self.engine.device,

View file

@ -61,7 +61,7 @@ pub trait Renderer: core::Renderer {
/// Stores custom, user-provided types.
#[derive(Default, Debug)]
pub struct Storage {
pipelines: FxHashMap<TypeId, Box<dyn Any + Send>>,
pipelines: FxHashMap<TypeId, Box<dyn Any + Send + Sync>>,
}
impl Storage {
@ -71,7 +71,7 @@ impl Storage {
}
/// Inserts the data `T` in to [`Storage`].
pub fn store<T: 'static + Send>(&mut self, data: T) {
pub fn store<T: 'static + Send + Sync>(&mut self, data: T) {
let _ = self.pipelines.insert(TypeId::of::<T>(), Box::new(data));
}