Fix cargo lint issues
This commit is contained in:
parent
576dd22733
commit
af6b8155c6
2 changed files with 3 additions and 3 deletions
|
|
@ -238,7 +238,7 @@ impl Renderer {
|
||||||
|
|
||||||
let view = texture.create_view(&wgpu::TextureViewDescriptor::default());
|
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(
|
let texture = crate::color::convert(
|
||||||
&self.engine.device,
|
&self.engine.device,
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,7 @@ pub trait Renderer: core::Renderer {
|
||||||
/// Stores custom, user-provided types.
|
/// Stores custom, user-provided types.
|
||||||
#[derive(Default, Debug)]
|
#[derive(Default, Debug)]
|
||||||
pub struct Storage {
|
pub struct Storage {
|
||||||
pipelines: FxHashMap<TypeId, Box<dyn Any + Send>>,
|
pipelines: FxHashMap<TypeId, Box<dyn Any + Send + Sync>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Storage {
|
impl Storage {
|
||||||
|
|
@ -71,7 +71,7 @@ impl Storage {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Inserts the data `T` in to [`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));
|
let _ = self.pipelines.insert(TypeId::of::<T>(), Box::new(data));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue