@@ -24,7 +24,7 @@ use std::{any::TypeId, fmt::Debug, hash::Hash, ops::Range};
24
24
pub trait Draw < P : PhaseItem > : Send + Sync + ' static {
25
25
/// Draws the [`PhaseItem`] by issuing draw calls via the [`TrackedRenderPass`].
26
26
#[ allow( unused_variables) ]
27
- fn prepare < ' w > ( & mut self , world : & ' w World ) { }
27
+ fn prepare ( & mut self , world : & ' _ World ) { }
28
28
29
29
/// Draws the [`PhaseItem`] by issuing draw calls via the [`TrackedRenderPass`].
30
30
fn draw < ' w > (
@@ -289,7 +289,7 @@ macro_rules! render_command_tuple_impl {
289
289
( $( $name, ) * ) : SystemParamItem <' w, ' _, Self :: Param >,
290
290
_pass: & mut TrackedRenderPass <' w>,
291
291
) -> RenderCommandResult {
292
- $( if $name:: render( _item, $view, $entity, $name, _pass) == RenderCommandResult :: Failure {
292
+ $( if let RenderCommandResult :: Failure = $name:: render( _item, $view, $entity, $name, _pass) {
293
293
return RenderCommandResult :: Failure ;
294
294
} ) *
295
295
RenderCommandResult :: Success
@@ -322,7 +322,7 @@ impl<P: PhaseItem, C: RenderCommand<P> + Send + Sync + 'static> Draw<P> for Rend
322
322
where
323
323
C :: Param : ReadOnlySystemParam ,
324
324
{
325
- fn prepare < ' w > ( & mut self , world : & ' w World ) {
325
+ fn prepare ( & mut self , world : & ' _ World ) {
326
326
self . view . update_archetypes ( world) ;
327
327
self . entity . update_archetypes ( world) ;
328
328
}
0 commit comments