Skip to content

Commit

Permalink
lints
Browse files Browse the repository at this point in the history
  • Loading branch information
Uriopass committed Dec 5, 2023
1 parent 576f62b commit 3f29916
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions engine/src/shader.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(clippy::redundant_pattern_matching)]

use crate::wgpu::ShaderSource;
use common::FastMap;
use std::borrow::Cow;
Expand Down
2 changes: 1 addition & 1 deletion geom/src/skeleton.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ impl Eq for Event {}

impl PartialOrd for Event {
fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
self.distance().partial_cmp(&other.distance())
Some(self.cmp(other))
}
}

Expand Down
1 change: 1 addition & 0 deletions native_app/src/rendering/orbit_camera.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(clippy::redundant_closure_call)]
use crate::gui::windows::settings::Settings;
use crate::inputmap::{InputAction, InputMap};
use common::saveload::Encoder;
Expand Down
2 changes: 1 addition & 1 deletion simulation/src/map/objects/turn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ impl Borrow<TurnID> for Turn {

impl PartialOrd for Turn {
fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
self.id.partial_cmp(&other.id)
Some(self.cmp(other))
}
}

Expand Down
1 change: 1 addition & 0 deletions simulation/src/map/turn_policy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ pub struct TurnPolicy {
pub left_turns: bool,
pub crosswalks: bool,
#[inspect(proxy_type = "OptionDefault")]
#[serde(default, skip_serializing_if = "Option::is_none")]
pub roundabout: Option<RoundaboutPolicy>,
}

Expand Down

0 comments on commit 3f29916

Please sign in to comment.