chore: rustfmt

This commit is contained in:
Maccesch 2024-08-28 02:59:31 +01:00
parent 074685acab
commit c242e51936
7 changed files with 9 additions and 9 deletions

View file

@ -130,8 +130,8 @@ use std::rc::Rc;
///
/// #### Different Types
///
/// `SyncSignalOptions::default()` is only defined if the two signal types are identical.
/// Otherwise, you have to initialize the options with `with_transforms` or `with_assigns` instead
/// `SyncSignalOptions::default()` is only defined if the two signal types are identical.
/// Otherwise, you have to initialize the options with `with_transforms` or `with_assigns` instead
/// of `default`.
///
/// ```
@ -336,7 +336,7 @@ pub struct SyncSignalOptions<L, R> {
/// How to transform or assign the values to each other
/// If `L` and `R` are identical this defaults to the simple `=` operator. If the types are
/// not the same, then you have to choose to either use [`SyncSignalOptions::with_transforms`]
/// not the same, then you have to choose to either use [`SyncSignalOptions::with_transforms`]
/// or [`SyncSignalOptions::with_assigns`].
#[builder(skip)]
transforms: SyncTransforms<L, R>,

View file

@ -4,7 +4,7 @@ use leptos::ev::{copy, cut};
use leptos::*;
/// Reactive [Clipboard API](https://developer.mozilla.org/en-US/docs/Web/API/Clipboard_API).
///
///
/// Provides the ability to respond to clipboard commands (cut, copy, and paste)
/// as well as to asynchronously read from and write to the system clipboard.
/// Access to the contents of the clipboard is gated behind the

View file

@ -2,7 +2,7 @@ use cfg_if::cfg_if;
use leptos::*;
/// Reactive [DeviceOrientationEvent](https://developer.mozilla.org/en-US/docs/Web/API/DeviceOrientationEvent).
///
///
/// Provide web developers with information from the physical orientation of
/// the device running the web page.
///

View file

@ -13,7 +13,7 @@ cfg_if! { if #[cfg(not(feature = "ssr"))] {
}}
/// Use EventListener with ease.
///
///
/// Register using [addEventListener](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener) on mounted,
/// and [removeEventListener](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener) automatically on cleanup.
///

View file

@ -3,7 +3,7 @@ use default_struct_builder::DefaultBuilder;
use leptos::*;
/// Reactive [Geolocation API](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API).
///
///
/// It allows the user to provide their location to web applications if they so desire. For privacy reasons,
/// the user is asked for permission to report location information.
///

View file

@ -151,7 +151,7 @@ async fn create_media(video: bool, audio: bool) -> Result<web_sys::MediaStream,
}
/// Options for [`use_user_media_with_options`].
///
///
/// Either or both constraints must be specified.
/// If the browser cannot find all media tracks with the specified types that meet the constraints given,
/// then the returned promise is rejected with `NotFoundError`

View file

@ -359,7 +359,7 @@ impl From<&UseWebNotificationOptions> for web_sys::NotificationOptions {
}
/// Options for [`UseWebNotificationReturn::show`].
///
///
/// This can be used to override options passed to [`use_web_notification`].
/// See [MDN Docs](https://developer.mozilla.org/en-US/docs/Web/API/notification) for more info.
///