Skip to content

Commit

Permalink
fix rust 1.80 lints
Browse files Browse the repository at this point in the history
  • Loading branch information
ranile committed Jul 25, 2024
1 parent 89c9dfe commit efdc727
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ lto = true
codegen-units = 1
panic = "abort"
opt-level = 3

4 changes: 4 additions & 0 deletions packages/yew-macro/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,7 @@ prettyplease = "0.2"
rustversion = "1"
trybuild = "1"
yew = { path = "../yew" }

[lints.rust]
unexpected_cfgs = { level = "allow", check-cfg = ['cfg(nightly_yew)'] }

4 changes: 4 additions & 0 deletions packages/yew/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,7 @@ default = []
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "documenting"]

[lints.rust]
unexpected_cfgs = { level = "allow", check-cfg = ['cfg(nightly_yew)'] }

1 change: 1 addition & 0 deletions packages/yew/src/dom_bundle/blist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ impl BList {
let rights_to = rev_bundles.len() - matching_len_start;
let mut spliced_middle =
rev_bundles.splice(matching_len_end..rights_to, std::iter::empty());
#[allow(clippy::mutable_key_type)]
let mut spare_bundles: HashSet<KeyedEntry> =
HashSet::with_capacity((matching_len_end..rights_to).len());
for (idx, r) in (&mut spliced_middle).enumerate() {
Expand Down

0 comments on commit efdc727

Please sign in to comment.