Fix CI for 1.80 (#3691)

* fix rust 1.80 lints

* attempt to fix benchmark ci
This commit is contained in:
Elina 2024-07-25 20:33:14 +05:00 committed by GitHub
parent 89c9dfe527
commit 37e668b19b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 14 additions and 0 deletions

View File

@ -49,6 +49,10 @@ jobs:
cache-dependency-path: js-framework-benchmark/package-lock.json
- uses: Swatinem/rust-cache@v2
- name: Setup chrome
uses: browser-actions/setup-chrome@v1
with:
install-chromedriver: true
- name: setup js-framework-benchmark
working-directory: js-framework-benchmark

View File

@ -20,3 +20,4 @@ lto = true
codegen-units = 1
panic = "abort"
opt-level = 3

View File

@ -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)'] }

View File

@ -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)'] }

View File

@ -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() {