diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 34941c449..5f5eb369a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -42,11 +42,11 @@ jobs: SCCACHE_GHA_ENABLED: "true" RUSTC_WRAPPER: "sccache" steps: + - run: sudo apt-get update + - run: sudo apt install libwebkit2gtk-4.1-dev libgtk-3-dev libayatana-appindicator3-dev - uses: dtolnay/rust-toolchain@stable - uses: mozilla-actions/sccache-action@v0.0.3 - uses: ilammy/setup-nasm@v1 - - run: sudo apt-get update - - run: sudo apt install libwebkit2gtk-4.1-dev libgtk-3-dev libayatana-appindicator3-dev - uses: actions/checkout@v4 - run: cargo check --all --examples --tests @@ -60,11 +60,11 @@ jobs: SCCACHE_GHA_ENABLED: "true" RUSTC_WRAPPER: "sccache" steps: + - run: sudo apt-get update + - run: sudo apt install libwebkit2gtk-4.1-dev libgtk-3-dev libayatana-appindicator3-dev libxdo-dev - uses: dtolnay/rust-toolchain@stable - uses: mozilla-actions/sccache-action@v0.0.3 - uses: ilammy/setup-nasm@v1 - - run: sudo apt-get update - - run: sudo apt install libwebkit2gtk-4.1-dev libgtk-3-dev libayatana-appindicator3-dev libxdo-dev - uses: davidB/rust-cargo-make@v1 - uses: browser-actions/setup-firefox@latest - uses: jetli/wasm-pack-action@v0.4.0 @@ -98,11 +98,11 @@ jobs: SCCACHE_GHA_ENABLED: "true" RUSTC_WRAPPER: "sccache" steps: + - run: sudo apt-get update + - run: sudo apt install libwebkit2gtk-4.1-dev libgtk-3-dev libayatana-appindicator3-dev - uses: dtolnay/rust-toolchain@stable - uses: mozilla-actions/sccache-action@v0.0.3 - uses: ilammy/setup-nasm@v1 - - run: sudo apt-get update - - run: sudo apt install libwebkit2gtk-4.1-dev libgtk-3-dev libayatana-appindicator3-dev - run: rustup component add clippy - uses: actions/checkout@v4 - run: cargo clippy --workspace --examples --tests -- -D warnings diff --git a/packages/core/src/runtime.rs b/packages/core/src/runtime.rs index f3735b020..c3aaab790 100644 --- a/packages/core/src/runtime.rs +++ b/packages/core/src/runtime.rs @@ -133,6 +133,7 @@ impl Runtime { /// } /// } /// +/// # #[allow(non_snake_case)] /// fn Component(cx: Scope) -> Element { /// cx.use_hook(|| RuntimeGuard::new(cx.props.runtime.clone())); /// diff --git a/packages/html/src/file_data.rs b/packages/html/src/file_data.rs index e206015bb..b15eaab2b 100644 --- a/packages/html/src/file_data.rs +++ b/packages/html/src/file_data.rs @@ -1,4 +1,4 @@ -use std::{any::Any, collections::HashMap}; +use std::any::Any; pub trait HasFileData: std::any::Any { fn files(&self) -> Option> { @@ -10,7 +10,7 @@ pub trait HasFileData: std::any::Any { /// A file engine that serializes files to bytes #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq, Clone)] pub struct SerializedFileEngine { - pub files: HashMap>, + pub files: std::collections::HashMap>, } #[cfg(feature = "serialize")]