Skip to content

Commit aa146b3

Browse files
committed
Fix CI
1 parent 1756709 commit aa146b3

File tree

1 file changed

+3
-3
lines changed
  • crates/bevy_render/src/render_phase

1 file changed

+3
-3
lines changed

crates/bevy_render/src/render_phase/draw.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ use std::{any::TypeId, fmt::Debug, hash::Hash, ops::Range};
2424
pub trait Draw<P: PhaseItem>: Send + Sync + 'static {
2525
/// Draws the [`PhaseItem`] by issuing draw calls via the [`TrackedRenderPass`].
2626
#[allow(unused_variables)]
27-
fn prepare<'w>(&mut self, world: &'w World) {}
27+
fn prepare(&mut self, world: &'_ World) {}
2828

2929
/// Draws the [`PhaseItem`] by issuing draw calls via the [`TrackedRenderPass`].
3030
fn draw<'w>(
@@ -289,7 +289,7 @@ macro_rules! render_command_tuple_impl {
289289
($($name,)*): SystemParamItem<'w, '_, Self::Param>,
290290
_pass: &mut TrackedRenderPass<'w>,
291291
) -> RenderCommandResult {
292-
$(if $name::render(_item, $view, $entity, $name, _pass) == RenderCommandResult::Failure {
292+
$(if let RenderCommandResult::Failure = $name::render(_item, $view, $entity, $name, _pass) {
293293
return RenderCommandResult::Failure;
294294
})*
295295
RenderCommandResult::Success
@@ -322,7 +322,7 @@ impl<P: PhaseItem, C: RenderCommand<P> + Send + Sync + 'static> Draw<P> for Rend
322322
where
323323
C::Param: ReadOnlySystemParam,
324324
{
325-
fn prepare<'w>(&mut self, world: &'w World) {
325+
fn prepare(&mut self, world: &'_ World) {
326326
self.view.update_archetypes(world);
327327
self.entity.update_archetypes(world);
328328
}

0 commit comments

Comments
 (0)