Skip to content

Commit 92d10d5

Browse files
tottotoseanmonstar
authored andcommitted
refactor: remove unnecessary extern crate sentence
1 parent 0de99de commit 92d10d5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+0
-55
lines changed

src/common/access_control_allow_credentials.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ use crate::{Error, Header};
2727
/// # Examples
2828
///
2929
/// ```
30-
/// # extern crate headers;
3130
/// use headers::AccessControlAllowCredentials;
3231
///
3332
/// let allow_creds = AccessControlAllowCredentials;

src/common/access_control_allow_headers.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ use crate::util::FlatCsv;
2323
/// # Examples
2424
///
2525
/// ```
26-
/// # extern crate headers;
2726
/// extern crate http;
2827
/// use http::header::{CACHE_CONTROL, CONTENT_TYPE};
2928
/// use headers::AccessControlAllowHeaders;

src/common/access_control_allow_methods.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ use crate::util::FlatCsv;
2323
/// # Examples
2424
///
2525
/// ```
26-
/// # extern crate headers;
2726
/// extern crate http;
2827
/// use http::Method;
2928
/// use headers::AccessControlAllowMethods;

src/common/access_control_allow_origin.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ use crate::Error;
2727
/// # Examples
2828
///
2929
/// ```
30-
/// # extern crate headers;
3130
/// use headers::AccessControlAllowOrigin;
3231
/// use std::convert::TryFrom;
3332
///

src/common/access_control_expose_headers.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ use crate::util::FlatCsv;
2222
/// # Examples
2323
///
2424
/// ```
25-
/// # extern crate headers;
2625
/// extern crate http;
2726
/// # fn main() {
2827
/// use http::header::{CONTENT_LENGTH, ETAG};

src/common/access_control_max_age.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ use crate::util::Seconds;
2121
/// # Examples
2222
///
2323
/// ```
24-
/// # extern crate headers;
2524
/// use std::time::Duration;
2625
/// use headers::AccessControlMaxAge;
2726
///

src/common/access_control_request_headers.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ use crate::util::FlatCsv;
2323
/// # Examples
2424
///
2525
/// ```
26-
/// # extern crate headers;
2726
/// extern crate http;
2827
/// # fn main() {
2928
/// use http::header::{ACCEPT_LANGUAGE, DATE};

src/common/access_control_request_method.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ use crate::{Error, Header};
1919
/// # Examples
2020
///
2121
/// ```
22-
/// # extern crate headers;
2322
/// extern crate http;
2423
/// use headers::AccessControlRequestMethod;
2524
/// use http::Method;

src/common/age.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ use crate::util::Seconds;
3131
/// # Example
3232
///
3333
/// ```
34-
/// # extern crate headers;
3534
/// use headers::Age;
3635
///
3736
/// let len = Age::from_secs(60);

src/common/allow.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ use crate::util::FlatCsv;
2525
/// # Examples
2626
///
2727
/// ```
28-
/// # extern crate headers;
2928
/// extern crate http;
3029
/// use headers::Allow;
3130
/// use http::Method;

0 commit comments

Comments
 (0)