diff options
Diffstat (limited to 'src/level_gen/mod.rs')
-rw-r--r-- | src/level_gen/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/level_gen/mod.rs b/src/level_gen/mod.rs index df742bb3a1b0..d796a103b11e 100644 --- a/src/level_gen/mod.rs +++ b/src/level_gen/mod.rs @@ -68,7 +68,7 @@ pub fn draw_level<W: io::Write>( level: Vec<Vec<bool>>, out: &mut W, ) -> io::Result<()> { - if level.len() == 0 { + if level.is_empty() { return Ok(()); } |