Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
james7132 committed Dec 14, 2022
1 parent 1756709 commit aa146b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/bevy_render/src/render_phase/draw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ use std::{any::TypeId, fmt::Debug, hash::Hash, ops::Range};
pub trait Draw<P: PhaseItem>: Send + Sync + 'static {
/// Draws the [`PhaseItem`] by issuing draw calls via the [`TrackedRenderPass`].
#[allow(unused_variables)]
fn prepare<'w>(&mut self, world: &'w World) {}
fn prepare(&mut self, world: &'_ World) {}

/// Draws the [`PhaseItem`] by issuing draw calls via the [`TrackedRenderPass`].
fn draw<'w>(
Expand Down Expand Up @@ -289,7 +289,7 @@ macro_rules! render_command_tuple_impl {
($($name,)*): SystemParamItem<'w, '_, Self::Param>,
_pass: &mut TrackedRenderPass<'w>,
) -> RenderCommandResult {
$(if $name::render(_item, $view, $entity, $name, _pass) == RenderCommandResult::Failure {
$(if let RenderCommandResult::Failure = $name::render(_item, $view, $entity, $name, _pass) {
return RenderCommandResult::Failure;
})*
RenderCommandResult::Success
Expand Down Expand Up @@ -322,7 +322,7 @@ impl<P: PhaseItem, C: RenderCommand<P> + Send + Sync + 'static> Draw<P> for Rend
where
C::Param: ReadOnlySystemParam,
{
fn prepare<'w>(&mut self, world: &'w World) {
fn prepare(&mut self, world: &'_ World) {
self.view.update_archetypes(world);
self.entity.update_archetypes(world);
}
Expand Down

0 comments on commit aa146b3

Please sign in to comment.