mirror of
https://github.com/adoyle0/leptos-use.git
synced 2025-01-22 16:49:22 -05:00
Run cargo fmt
This commit is contained in:
parent
e21ed8ec31
commit
60d43f6317
4 changed files with 5 additions and 5 deletions
|
@ -25,7 +25,6 @@ mod is_none;
|
|||
mod is_ok;
|
||||
mod is_some;
|
||||
mod on_click_outside;
|
||||
mod use_user_media;
|
||||
mod signal_debounced;
|
||||
mod signal_throttled;
|
||||
mod sync_signal;
|
||||
|
@ -75,6 +74,7 @@ mod use_throttle_fn;
|
|||
mod use_timeout_fn;
|
||||
mod use_timestamp;
|
||||
mod use_to_string;
|
||||
mod use_user_media;
|
||||
mod use_web_notification;
|
||||
mod use_websocket;
|
||||
mod use_window;
|
||||
|
@ -91,7 +91,6 @@ pub use is_none::*;
|
|||
pub use is_ok::*;
|
||||
pub use is_some::*;
|
||||
pub use on_click_outside::*;
|
||||
pub use use_user_media::*;
|
||||
pub use signal_debounced::*;
|
||||
pub use signal_throttled::*;
|
||||
pub use sync_signal::*;
|
||||
|
@ -141,6 +140,7 @@ pub use use_throttle_fn::*;
|
|||
pub use use_timeout_fn::*;
|
||||
pub use use_timestamp::*;
|
||||
pub use use_to_string::*;
|
||||
pub use use_user_media::*;
|
||||
pub use use_web_notification::*;
|
||||
pub use use_websocket::*;
|
||||
pub use use_window::*;
|
||||
|
|
|
@ -127,7 +127,7 @@ pub fn use_clipboard_with_options(
|
|||
pub struct UseClipboardOptions {
|
||||
/// When `true` event handlers are added so that the returned signal `text` is updated whenever the clipboard changes.
|
||||
/// Defaults to `false`.
|
||||
///
|
||||
///
|
||||
/// > Please note that clipboard changes are only detected when copying or cutting text inside the same document.
|
||||
read: bool,
|
||||
|
||||
|
|
|
@ -92,7 +92,7 @@ use std::rc::Rc;
|
|||
/// 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 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.
|
||||
/// > In case it's `actix-web` enable the feature `"actix"`, for `spin` enable `"spin"`.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/// 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.
|
||||
#[macro_export]
|
||||
macro_rules! use_derive_signal {
|
||||
|
|
Loading…
Add table
Reference in a new issue