Merge pull request #75 from mondeja/fix-ci

Use previous Trunk version in CI and apply clippy suggestions
This commit is contained in:
Marc-Stefan Cassola 2024-01-30 12:03:25 +00:00 committed by GitHub
commit 89c2ea5ea5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 6 deletions

View file

@ -30,7 +30,7 @@ jobs:
- name: Install mdbook II
run: |
cargo binstall -y mdbook-cmdrun
cargo binstall -y trunk
cargo binstall -y trunk@0.17.5
rustup target add wasm32-unknown-unknown
- name: Setup Pages
id: pages

View file

@ -46,7 +46,7 @@ jobs:
- name: Install mdbook II
run: |
cargo binstall -y mdbook-cmdrun
cargo binstall -y trunk
cargo binstall -y trunk@0.17.5
rustup target add wasm32-unknown-unknown
- name: Setup Pages
id: pages

View file

@ -103,8 +103,6 @@ where
};
let close = {
let channel = channel.clone();
move || {
if let Some(channel) = channel.get_untracked() {
channel.close();
@ -153,7 +151,7 @@ where
close();
});
return UseBroadcastChannelReturn {
UseBroadcastChannelReturn {
is_supported,
channel: channel.into(),
message: message.into(),
@ -161,7 +159,7 @@ where
close,
error: error.into(),
is_closed: is_closed.into(),
};
}
}
/// Return type of [`use_broadcast_channel`].