Skip to content

Commit

Permalink
Fix rustdoc.
Browse files Browse the repository at this point in the history
  • Loading branch information
futursolo committed Apr 30, 2022
1 parent ee5caea commit 1ff916a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
9 changes: 6 additions & 3 deletions packages/yew/src/functional/hooks/use_prepared_state/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ pub use feat_ssr::*;
///
/// ```
/// # use yew::prelude::*;
/// # use serde::{Serialize, DeserializeOwned};
/// # use serde::de::DeserializeOwned;
/// # use serde::Serialize;
/// # use std::rc::Rc;
/// #[hook]
/// pub fn use_prepared_state<T, D, F>(f: F, deps: D) -> Option<Rc<T>>
Expand All @@ -49,14 +50,16 @@ pub use feat_ssr::*;
///
/// ```
/// # use yew::prelude::*;
/// # use serde::{Serialize, DeserializeOwned};
/// # use serde::de::DeserializeOwned;
/// # use serde::Serialize;
/// # use yew::suspense::SuspensionResult;
/// # use std::rc::Rc;
/// # use std::future::Future;
/// #[hook]
/// pub fn use_prepared_state<T, D, F, U>(
/// f: F,
/// deps: D,
/// ) -> impl Hook<Output = SuspensionResult<Option<Rc<T>>>>
/// ) -> SuspensionResult<Option<Rc<T>>>
/// where
/// D: Serialize + DeserializeOwned + PartialEq + 'static,
/// T: Serialize + DeserializeOwned + 'static,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ pub use feat_ssr::*;
///
/// ```
/// # use yew::prelude::*;
/// # use serde::{Serialize, DeserializeOwned};
/// # use serde::de::DeserializeOwned;
/// # use serde::Serialize;
/// # use std::rc::Rc;
/// #[hook]
/// pub fn use_transitive_state<T, D, F>(f: F, deps: D) -> Option<Rc<T>>
Expand Down

0 comments on commit 1ff916a

Please sign in to comment.