aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-05-05 01:50:29 +0000
committerFuwn <[email protected]>2023-05-05 01:50:29 +0000
commit9fe1f541e7db6a28a316fc2262acb842047d95a5 (patch)
treeaac77a0274b426c25fbe18e540ca880e91fc740d
parentdocs: fix for prelude (diff)
downloadwindmark-9fe1f541e7db6a28a316fc2262acb842047d95a5.tar.xz
windmark-9fe1f541e7db6a28a316fc2262acb842047d95a5.zip
docs(router): ignore attach_async example
-rw-r--r--src/router.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/router.rs b/src/router.rs
index 60dfe2f..1d6b224 100644
--- a/src/router.rs
+++ b/src/router.rs
@@ -727,9 +727,9 @@ impl Router {
///
/// # Examples
///
- /// ```rust
+ /// ```no_run
/// use log::info;
- /// use windmark::context::HookContext;
+ /// use windmark::{context::HookContext, router::Router};
///
/// #[derive(Default)]
/// struct Clicker {
@@ -738,7 +738,7 @@ impl Router {
///
/// #[async_trait::async_trait]
/// impl windmark::module::AsyncModule for Clicker {
- /// async fn on_attach(&mut self, _: &mut windmark::router::Router) {
+ /// async fn on_attach(&mut self, _: &mut Router) {
/// info!("clicker has been attached!");
/// }
///
@@ -761,7 +761,7 @@ impl Router {
/// }
/// }
///
- /// windmark::router::Router::new().attach_async(Clicker::default());
+ /// Router::new().attach_async(Clicker::default());
/// ```
pub fn attach_async(
&mut self,