mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Merge branch 'tygyh/Resolve-all-'#-allow(clippy--int_plus_one)]'-error-supressions' into 'master'
Resolve all '#[allow(clippy::int_plus_one)]' error supressions See merge request veloren/veloren!2606
This commit is contained in:
commit
ad2cf88e33
@ -245,7 +245,6 @@ impl Archetype for House {
|
||||
}
|
||||
|
||||
#[allow(clippy::if_same_then_else)] // TODO: Pending review in #587
|
||||
#[allow(clippy::int_plus_one)] // TODO: Pending review in #587
|
||||
fn draw(
|
||||
&self,
|
||||
index: IndexRef,
|
||||
@ -335,9 +334,7 @@ impl Archetype for House {
|
||||
if let Pillar::Chimney(chimney_height) = attr.pillar {
|
||||
let chimney_top = roof_top + chimney_height;
|
||||
// Chimney shaft
|
||||
if center_offset.map(|e| e.abs()).reduce_max() == 0
|
||||
&& profile.y >= foundation_height + 1
|
||||
{
|
||||
if center_offset.map(|e| e.abs()).reduce_max() == 0 && profile.y > foundation_height {
|
||||
return if profile.y == foundation_height + 1 {
|
||||
fire
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user