Run cargo fmt

This commit is contained in:
Álvaro Mondéjar Rubio 2024-07-27 18:23:28 +02:00
parent e21ed8ec31
commit 60d43f6317
4 changed files with 5 additions and 5 deletions

View file

@ -25,7 +25,6 @@ mod is_none;
mod is_ok; mod is_ok;
mod is_some; mod is_some;
mod on_click_outside; mod on_click_outside;
mod use_user_media;
mod signal_debounced; mod signal_debounced;
mod signal_throttled; mod signal_throttled;
mod sync_signal; mod sync_signal;
@ -75,6 +74,7 @@ mod use_throttle_fn;
mod use_timeout_fn; mod use_timeout_fn;
mod use_timestamp; mod use_timestamp;
mod use_to_string; mod use_to_string;
mod use_user_media;
mod use_web_notification; mod use_web_notification;
mod use_websocket; mod use_websocket;
mod use_window; mod use_window;
@ -91,7 +91,6 @@ pub use is_none::*;
pub use is_ok::*; pub use is_ok::*;
pub use is_some::*; pub use is_some::*;
pub use on_click_outside::*; pub use on_click_outside::*;
pub use use_user_media::*;
pub use signal_debounced::*; pub use signal_debounced::*;
pub use signal_throttled::*; pub use signal_throttled::*;
pub use sync_signal::*; pub use sync_signal::*;
@ -141,6 +140,7 @@ pub use use_throttle_fn::*;
pub use use_timeout_fn::*; pub use use_timeout_fn::*;
pub use use_timestamp::*; pub use use_timestamp::*;
pub use use_to_string::*; pub use use_to_string::*;
pub use use_user_media::*;
pub use use_web_notification::*; pub use use_web_notification::*;
pub use use_websocket::*; pub use use_websocket::*;
pub use use_window::*; pub use use_window::*;

View file

@ -127,7 +127,7 @@ pub fn use_clipboard_with_options(
pub struct UseClipboardOptions { pub struct UseClipboardOptions {
/// When `true` event handlers are added so that the returned signal `text` is updated whenever the clipboard changes. /// When `true` event handlers are added so that the returned signal `text` is updated whenever the clipboard changes.
/// Defaults to `false`. /// Defaults to `false`.
/// ///
/// > Please note that clipboard changes are only detected when copying or cutting text inside the same document. /// > Please note that clipboard changes are only detected when copying or cutting text inside the same document.
read: bool, read: bool,

View file

@ -92,7 +92,7 @@ use std::rc::Rc;
/// the HTTP response header according to options (if provided). /// the HTTP response header according to options (if provided).
/// The returned `WriteSignal` may not affect the cookie headers on the server! It will try and write /// The returned `WriteSignal` may not affect the cookie headers on the server! It will try and write
/// the headers buy if this happens after the headers have already been streamed to the client then /// the headers buy if this happens after the headers have already been streamed to the client then
/// this will have no effect. /// this will have no effect.
/// ///
/// > If you're using `axum` you have to enable the `"axum"` feature in your Cargo.toml. /// > If you're using `axum` you have to enable the `"axum"` feature in your Cargo.toml.
/// > In case it's `actix-web` enable the feature `"actix"`, for `spin` enable `"spin"`. /// > In case it's `actix-web` enable the feature `"actix"`, for `spin` enable `"spin"`.

View file

@ -1,5 +1,5 @@
/// Macro to easily create helper functions that derive a signal using a piece of code. /// Macro to easily create helper functions that derive a signal using a piece of code.
/// ///
/// See [`fn@crate::is_ok`] or [`fn@crate::use_to_string`] as examples. /// See [`fn@crate::is_ok`] or [`fn@crate::use_to_string`] as examples.
#[macro_export] #[macro_export]
macro_rules! use_derive_signal { macro_rules! use_derive_signal {