Skip to content
This repository has been archived by the owner on Dec 17, 2022. It is now read-only.

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
therustmonk committed Oct 6, 2021
1 parent 0173eb1 commit f9d98dc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pkg-core/rate-config/src/config/cases.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ impl From<Spacer> for basis::Spacer {
fn from(value: Spacer) -> Self {
// TODO: How to improve default?
Self {
flex: value.flex.unwrap_or_else(|| OrderedFloat(1.0)),
flex: value.flex.unwrap_or(OrderedFloat(1.0)),
maintenance: value.maintenance.unwrap_or_default(),
}
}
Expand Down
1 change: 1 addition & 0 deletions pkg-core/rate-core/src/actors/node/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ pub struct NodeConfig {
pub internal_address: Option<SocketAddr>,
}

#[allow(clippy::derivable_impls)]
impl Default for NodeConfig {
fn default() -> Self {
Self {
Expand Down
3 changes: 2 additions & 1 deletion pkg-dashboard/rate-ui/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ description = "RillRate UI: extension for Yew"

[dependencies]
anyhow = "1.0.44"
approx = "0.5.0"
#approx = "0.5.0"
approx = { git = "https://github.com/torokati44/approx.git", branch = "chores" }
chrono = { version = "0.4.19", features = ["wasmbind"] }
derive_more = "0.99.16"
itertools = "0.10.1"
Expand Down
4 changes: 2 additions & 2 deletions pkg-packs/basis/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ pub use paths::*;
#[cfg(feature = "engine")]
pub fn init() {
// TODO: How to do it better?
drop(&*crate::manifest::paths::global::PATHS);
drop(&*crate::manifest::layouts::global::LAYOUTS);
let _ = &*crate::manifest::paths::global::PATHS;
let _ = &*crate::manifest::layouts::global::LAYOUTS;
}

0 comments on commit f9d98dc

Please sign in to comment.