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
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
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

1 comment on commit 1ff916a

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'Yew master branch benchmarks (Lower is better)'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 2.

Benchmark suite Current: 1ff916a Previous: 653aa54 Ratio
yew-struct-keyed 32_startup-bt 58.42799999999999 27.332 2.14

This comment was automatically generated by workflow using github-action-benchmark.

CC: @yewstack/yew

Please sign in to comment.