Skip to content

Commit 11ec95e

Browse files
committed
Update broken doc links in contrib.
1 parent 08bf1c5 commit 11ec95e

File tree

2 files changed

+17
-16
lines changed

2 files changed

+17
-16
lines changed

contrib/lib/src/helmet/mod.rs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@
2323
//!
2424
//! # Supported Headers
2525
//!
26-
//! | HTTP Header | Description | Policy | Default? |
27-
//! | --------------------------- | -------------------------------------- | ------------ | -------- |
28-
//! | [X-XSS-Protection] | Prevents some reflected XSS attacks. | [`XssFilter`] | ✔ |
29-
//! | [X-Content-Type-Options] | Prevents client sniffing of MIME type. | [`NoSniff`] | ✔ |
30-
//! | [X-Frame-Options] | Prevents [clickjacking]. | [`Frame`] | ✔ |
31-
//! | [Strict-Transport-Security] | Enforces strict use of HTTPS. | [`Hsts`] | ? |
32-
//! | [Expect-CT] | Enables certificate transparency. | [`ExpectCt`] | ✗ |
33-
//! | [Referrer-Policy] | Enables referrer policy. | [`Referrer`] | ✗ |
26+
//! | HTTP Header | Description | Policy | Default? |
27+
//! | --------------------------- | -------------------------------------- | ------------- | -------- |
28+
//! | [X-XSS-Protection] | Prevents some reflected XSS attacks. | [`XssFilter`] | ✔ |
29+
//! | [X-Content-Type-Options] | Prevents client sniffing of MIME type. | [`NoSniff`] | ✔ |
30+
//! | [X-Frame-Options] | Prevents [clickjacking]. | [`Frame`] | ✔ |
31+
//! | [Strict-Transport-Security] | Enforces strict use of HTTPS. | [`Hsts`] | ? |
32+
//! | [Expect-CT] | Enables certificate transparency. | [`ExpectCt`] | ✗ |
33+
//! | [Referrer-Policy] | Enables referrer policy. | [`Referrer`] | ✗ |
3434
//!
3535
//! <small>? If TLS is enabled when the application is launched, in a
3636
//! non-development environment (e.g., staging or production), HSTS is
@@ -45,12 +45,12 @@
4545
//! [Referrer-Policy]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy
4646
//! [clickjacking]: https://en.wikipedia.org/wiki/Clickjacking
4747
//!
48-
//! [`XssFilter`]: helmet::XssFilter
49-
//! [`NoSniff`]: helmet::NoSniff
50-
//! [`Frame`]: helmet::Frame
51-
//! [`Hsts`]: helmet::Hsts
52-
//! [`ExpectCt`]: helmet::ExpectCt
53-
//! [`Referrer`]: helmet::Referrer
48+
//! [`XssFilter`]: self::XssFilter
49+
//! [`NoSniff`]: self::NoSniff
50+
//! [`Frame`]: self::Frame
51+
//! [`Hsts`]: self::Hsts
52+
//! [`ExpectCt`]: self::ExpectCt
53+
//! [`Referrer`]: self::Referrer
5454
//!
5555
//! # Usage
5656
//!

contrib/lib/src/json.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,8 +304,9 @@ impl<'a> Responder<'a> for JsonValue {
304304
/// #[macro_use] extern crate rocket_contrib;
305305
/// ```
306306
///
307-
/// The return type of a `json!` invocation is [`JsonValue`](json::JsonValue). A
308-
/// value created with this macro can be returned from a handler as follows:
307+
/// The return type of a `json!` invocation is
308+
/// [`JsonValue`](crate::json::JsonValue). A value created with this macro can
309+
/// be returned from a handler as follows:
309310
///
310311
/// ```rust
311312
/// # #![feature(proc_macro_hygiene, decl_macro)]

0 commit comments

Comments
 (0)