mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-06 19:08:28 +00:00
Remove unused trait method
Rust 1.78.0 starts warning about this.
This commit is contained in:
parent
57d61b359b
commit
4b5e24df59
@ -177,7 +177,6 @@ pub fn load_model(
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub trait DrawModel<'a> {
|
pub trait DrawModel<'a> {
|
||||||
fn draw_mesh(&mut self, mesh: &'a Mesh, material: &'a Material);
|
|
||||||
fn draw_mesh_instanced(
|
fn draw_mesh_instanced(
|
||||||
&mut self,
|
&mut self,
|
||||||
mesh: &'a Mesh,
|
mesh: &'a Mesh,
|
||||||
@ -193,10 +192,6 @@ impl<'a, 'b> DrawModel<'b> for wgpu::RenderPass<'a>
|
|||||||
where
|
where
|
||||||
'b: 'a,
|
'b: 'a,
|
||||||
{
|
{
|
||||||
fn draw_mesh(&mut self, mesh: &'b Mesh, material: &'b Material) {
|
|
||||||
self.draw_mesh_instanced(mesh, material, 0..1);
|
|
||||||
}
|
|
||||||
|
|
||||||
fn draw_mesh_instanced(
|
fn draw_mesh_instanced(
|
||||||
&mut self,
|
&mut self,
|
||||||
mesh: &'b Mesh,
|
mesh: &'b Mesh,
|
||||||
|
Loading…
Reference in New Issue
Block a user