Update all examples to Rust 2024

This commit is contained in:
Héctor Ramón Jiménez 2025-02-21 01:28:47 +01:00
parent 9ceb467e6e
commit 91af1c5ed6
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
82 changed files with 96 additions and 95 deletions

View file

@ -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;
}