mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-10 06:34:20 +00:00
Add space between rsx and exclamation point (#2956)
This commit is contained in:
parent
8d68886310
commit
c7124e41fb
20 changed files with 41 additions and 41 deletions
|
@ -106,7 +106,7 @@ pub trait Context<T, E>: private::Sealed {
|
|||
/// "Error parsing number: {error}"
|
||||
/// }
|
||||
/// })?;
|
||||
/// todo!()
|
||||
/// unimplemented!()
|
||||
/// }
|
||||
/// ```
|
||||
fn show(self, display_error: impl FnOnce(&E) -> Element) -> Result<T>;
|
||||
|
@ -120,7 +120,7 @@ pub trait Context<T, E>: private::Sealed {
|
|||
/// // You can bubble up errors with `?` inside components, and event handlers
|
||||
/// // Along with the error itself, you can provide a way to display the error by calling `context`
|
||||
/// let number = "-1234".parse::<usize>().context("Parsing number inside of the NumberParser")?;
|
||||
/// todo!()
|
||||
/// unimplemented!()
|
||||
/// }
|
||||
/// ```
|
||||
fn context<C: Display + 'static>(self, context: C) -> Result<T>;
|
||||
|
@ -134,7 +134,7 @@ pub trait Context<T, E>: private::Sealed {
|
|||
/// // You can bubble up errors with `?` inside components, and event handlers
|
||||
/// // Along with the error itself, you can provide a way to display the error by calling `context`
|
||||
/// let number = "-1234".parse::<usize>().with_context(|| format!("Timestamp: {:?}", std::time::Instant::now()))?;
|
||||
/// todo!()
|
||||
/// unimplemented!()
|
||||
/// }
|
||||
/// ```
|
||||
fn with_context<C: Display + 'static>(self, context: impl FnOnce() -> C) -> Result<T>;
|
||||
|
|
|
@ -25,13 +25,13 @@ pub fn vdom_is_rendering() -> bool {
|
|||
/// fn Component() -> Element {
|
||||
/// let request = spawn(async move {
|
||||
/// match reqwest::get("https://api.example.com").await {
|
||||
/// Ok(_) => todo!(),
|
||||
/// Ok(_) => unimplemented!(),
|
||||
/// // You can explicitly throw an error into a scope with throw_error
|
||||
/// Err(err) => ScopeId::APP.throw_error(err)
|
||||
/// }
|
||||
/// });
|
||||
///
|
||||
/// todo!()
|
||||
/// unimplemented!()
|
||||
/// }
|
||||
/// ```
|
||||
pub fn throw_error(error: impl Into<CapturedError> + 'static) {
|
||||
|
|
|
@ -558,13 +558,13 @@ impl ScopeId {
|
|||
/// fn Component() -> Element {
|
||||
/// let request = spawn(async move {
|
||||
/// match reqwest::get("https://api.example.com").await {
|
||||
/// Ok(_) => todo!(),
|
||||
/// Ok(_) => unimplemented!(),
|
||||
/// // You can explicitly throw an error into a scope with throw_error
|
||||
/// Err(err) => ScopeId::APP.throw_error(err)
|
||||
/// }
|
||||
/// });
|
||||
///
|
||||
/// todo!()
|
||||
/// unimplemented!()
|
||||
/// }
|
||||
/// ```
|
||||
pub fn throw_error(self, error: impl Into<CapturedError> + 'static) {
|
||||
|
|
|
@ -17,7 +17,7 @@ use serde::{de::DeserializeOwned, Serialize};
|
|||
/// 1234
|
||||
/// });
|
||||
///
|
||||
/// todo!()
|
||||
/// unimplemented!()
|
||||
/// }
|
||||
/// ```
|
||||
pub fn use_server_cached<O: 'static + Clone + Serialize + DeserializeOwned>(
|
||||
|
|
|
@ -40,7 +40,7 @@ use std::future::Future;
|
|||
///
|
||||
/// ```rust, no_run
|
||||
/// # use dioxus::prelude::*;
|
||||
/// # async fn fetch_article(id: u32) -> String { todo!() }
|
||||
/// # async fn fetch_article(id: u32) -> String { unimplemented!() }
|
||||
/// use dioxus::prelude::*;
|
||||
///
|
||||
/// fn App() -> Element {
|
||||
|
|
|
@ -3,17 +3,17 @@ use std::str::FromStr;
|
|||
|
||||
#[component]
|
||||
fn Root() -> Element {
|
||||
todo!()
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
#[component]
|
||||
fn Test() -> Element {
|
||||
todo!()
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
#[component]
|
||||
fn Dynamic(id: usize) -> Element {
|
||||
todo!()
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
// Make sure trailing '/'s work correctly
|
||||
|
|
Loading…
Reference in a new issue