Resolve all '#[allow(clippy::int_plus_one)]' error supressions

This commit is contained in:
Dr. Dystopia
2021-07-15 12:47:57 +02:00
parent c03ad39440
commit d10cb2f161

View File

@ -245,7 +245,6 @@ impl Archetype for House {
} }
#[allow(clippy::if_same_then_else)] // TODO: Pending review in #587 #[allow(clippy::if_same_then_else)] // TODO: Pending review in #587
#[allow(clippy::int_plus_one)] // TODO: Pending review in #587
fn draw( fn draw(
&self, &self,
index: IndexRef, index: IndexRef,
@ -335,9 +334,7 @@ impl Archetype for House {
if let Pillar::Chimney(chimney_height) = attr.pillar { if let Pillar::Chimney(chimney_height) = attr.pillar {
let chimney_top = roof_top + chimney_height; let chimney_top = roof_top + chimney_height;
// Chimney shaft // Chimney shaft
if center_offset.map(|e| e.abs()).reduce_max() == 0 if center_offset.map(|e| e.abs()).reduce_max() == 0 && profile.y > foundation_height {
&& profile.y >= foundation_height + 1
{
return if profile.y == foundation_height + 1 { return if profile.y == foundation_height + 1 {
fire fire
} else { } else {