diff options
Diffstat (limited to 'src/entities')
-rw-r--r-- | src/entities/character.rs | 2 | ||||
-rw-r--r-- | src/entities/creature.rs | 2 | ||||
-rw-r--r-- | src/entities/entity.rs | 2 | ||||
-rw-r--r-- | src/entities/entity_char.rs | 2 | ||||
-rw-r--r-- | src/entities/environment.rs | 2 | ||||
-rw-r--r-- | src/entities/item.rs | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/src/entities/character.rs b/src/entities/character.rs index 2b1b6efe47de..360478e8be1c 100644 --- a/src/entities/character.rs +++ b/src/entities/character.rs @@ -42,7 +42,7 @@ impl Character { } impl display::Draw for Character { - fn do_draw(&self, out: &mut Write) -> io::Result<()> { + fn do_draw(&self, out: &mut dyn Write) -> io::Result<()> { write!(out, "@") } } diff --git a/src/entities/creature.rs b/src/entities/creature.rs index 87ffda161e1c..20071c1d88eb 100644 --- a/src/entities/creature.rs +++ b/src/entities/creature.rs @@ -57,7 +57,7 @@ impl Describe for Creature { } impl display::Draw for Creature { - fn do_draw(&self, out: &mut Write) -> io::Result<()> { + fn do_draw(&self, out: &mut dyn Write) -> io::Result<()> { write!(out, "{}", self.typ.chr) } } diff --git a/src/entities/entity.rs b/src/entities/entity.rs index e43175931b68..01075d298f81 100644 --- a/src/entities/entity.rs +++ b/src/entities/entity.rs @@ -103,7 +103,7 @@ impl_downcast!(Entity); impl DrawWithNeighbors for Box<dyn Entity> { fn do_draw_with_neighbors<'a, 'b>( &'a self, - out: &'b mut Write, + out: &'b mut dyn Write, neighbors: &'a Neighbors<Vec<&'a Box<dyn Entity>>>, ) -> io::Result<()> { (**self).do_draw_with_neighbors(out, neighbors) diff --git a/src/entities/entity_char.rs b/src/entities/entity_char.rs index 2f845820021e..88ca8a55a823 100644 --- a/src/entities/entity_char.rs +++ b/src/entities/entity_char.rs @@ -12,7 +12,7 @@ pub struct EntityChar { } impl Display for EntityChar { - fn fmt(&self, f: &mut Formatter) -> fmt::Result { + fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { write!( f, "{}{}{}", diff --git a/src/entities/environment.rs b/src/entities/environment.rs index 042873ec5a12..8f8a56706287 100644 --- a/src/entities/environment.rs +++ b/src/entities/environment.rs @@ -21,7 +21,7 @@ impl Wall { impl display::DrawWithNeighbors for Wall { fn do_draw_with_neighbors<'a, 'b>( &'a self, - out: &'b mut Write, + out: &'b mut dyn Write, neighbors: &'a Neighbors<Vec<&'a Box<dyn Entity>>>, ) -> io::Result<()> { let neighbor_styles: Neighbors<Option<BoxStyle>> = diff --git a/src/entities/item.rs b/src/entities/item.rs index 6e47a87f5b83..aa99fb42e2c1 100644 --- a/src/entities/item.rs +++ b/src/entities/item.rs @@ -44,7 +44,7 @@ impl Describe for Item { } impl display::Draw for Item { - fn do_draw(&self, out: &mut Write) -> io::Result<()> { + fn do_draw(&self, out: &mut dyn Write) -> io::Result<()> { write!(out, "{}", self.typ.chr) } } |