Skip to content

Commit e7e715a

Browse files
committed
fix doc links
1 parent d2d61aa commit e7e715a

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

tide-cookies/src/middleware.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,16 @@ use tide_core::{
1010

1111
/// Middleware to work with cookies.
1212
///
13-
/// [`CookiesMiddleware`] along with [`ContextExt`](crate::data::ContextExt) provide smooth
13+
/// [`CookiesMiddleware`] along with [`ContextExt`] provide smooth
1414
/// access to request cookies and setting/removing cookies from response. This leverages the
1515
/// [cookie](https://crates.io/crates/cookie) crate.
1616
/// This middleware parses cookies from request and caches them in the extension. Once the request
1717
/// is processed by endpoints and other middlewares, all the added and removed cookies are set on
1818
/// on the response. You will need to add this middle before any other middlewares that might need
1919
/// to access Cookies.
20+
///
21+
/// [`CookiesMiddleware`]: crate::middleware::CookiesMiddleware
22+
/// [`ContextExt`]: crate::data::ContextExt
2023
#[derive(Clone, Default, Debug)]
2124
pub struct CookiesMiddleware {}
2225

tide-core/src/app.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,8 @@ impl<State: Send + Sync + 'static> App<State> {
217217
///
218218
/// Middleware can only be added at the "top level" of an application,
219219
/// and is processed in the order in which it is applied.
220+
///
221+
/// [`Middleware`]: crate::middleware::Middleware
220222
pub fn middleware(&mut self, m: impl Middleware<State>) -> &mut Self {
221223
self.middleware.push(Arc::new(m));
222224
self
@@ -269,6 +271,8 @@ impl<State: Send + Sync + 'static> App<State> {
269271
///
270272
/// This type is useful only in conjunction with the [`HttpService`] trait,
271273
/// i.e. for hosting a Tide app within some custom HTTP server.
274+
///
275+
/// [`HttpService`]: http_service::HttpService
272276
#[derive(Clone)]
273277
#[allow(missing_debug_implementations)]
274278
pub struct Server<State> {

tide-core/src/route.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,7 @@ impl<'a, State: 'static> Route<'a, State> {
3737
}
3838
}
3939

40-
/// Add endpoint nested routes as in the example
41-
///```rust, no_run
42-
/// router.at("/a").nest(|router| {
43-
/// router.at("/").get(async move |_| "/a");
44-
/// router.at("/b").get(async move |_| "/a/b");
45-
///```
40+
/// Add endpoint nested routes
4641
pub fn nest(&mut self, f: impl FnOnce(&mut Route<'a, State>)) -> &mut Self {
4742
f(self);
4843
self

0 commit comments

Comments
 (0)