Update all examples to Rust 2024
This commit is contained in:
parent
9ceb467e6e
commit
91af1c5ed6
82 changed files with 96 additions and 95 deletions
|
|
@ -261,7 +261,7 @@ mod grid {
|
|||
pub fn tick(
|
||||
&mut self,
|
||||
amount: usize,
|
||||
) -> Option<impl Future<Output = Message>> {
|
||||
) -> Option<impl Future<Output = Message> + use<>> {
|
||||
let tick = self.state.tick(amount)?;
|
||||
|
||||
self.last_queued_ticks = amount;
|
||||
|
|
@ -722,7 +722,8 @@ mod grid {
|
|||
fn tick(
|
||||
&mut self,
|
||||
amount: usize,
|
||||
) -> Option<impl Future<Output = Result<Life, TickError>>> {
|
||||
) -> Option<impl Future<Output = Result<Life, TickError>> + use<>>
|
||||
{
|
||||
if self.is_ticking {
|
||||
return None;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue