Skip to content

Commit

Permalink
chore: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
maccesch committed Oct 20, 2024
1 parent 019a769 commit ebbb715
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.13.6] - 2024-10-20

- Updated leptos-spin version to 0.2 (thanks to @tqq1994516).

## [0.13.5] - 2024-09-15

### New Function 🚀
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "leptos-use"
version = "0.13.5"
version = "0.13.6"
edition = "2021"
authors = ["Marc-Stefan Cassola"]
categories = ["gui", "web-programming"]
Expand Down
11 changes: 4 additions & 7 deletions src/use_broadcast_channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,7 @@ use wasm_bindgen::JsValue;
/// ```
pub fn use_broadcast_channel<T, C>(
name: &str,
) -> UseBroadcastChannelReturn<
T,
impl Fn(&T) + Clone,
impl Fn() + Clone,
<C as Encoder<T>>::Error,
<C as Decoder<T>>::Error,
>
) -> UseBroadcastChannelReturnType<C, T, impl Fn(&T) + Clone, impl Fn() + Clone>
where
C: Encoder<T, Encoded = String> + Decoder<T, Encoded = str>,
{
Expand Down Expand Up @@ -174,6 +168,9 @@ where
}
}

pub type UseBroadcastChannelReturnType<C, T, PFn, CFn> =
UseBroadcastChannelReturn<T, PFn, CFn, <C as Encoder<T>>::Error, <C as Decoder<T>>::Error>;

/// Return type of [`use_broadcast_channel`].
pub struct UseBroadcastChannelReturn<T, PFn, CFn, E, D>
where
Expand Down
1 change: 0 additions & 1 deletion src/use_web_lock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ pub use web_sys::LockMode;
///
/// On the server this returns `Err(UseWebLockError::Server)` and the task is not executed.
// #[doc(cfg(feature = "use_web_lock"))]

pub async fn use_web_lock<C, F, R>(name: &str, callback: C) -> Result<R, UseWebLockError>
where
C: FnOnce(web_sys::Lock) -> F + 'static,
Expand Down

0 comments on commit ebbb715

Please sign in to comment.