Skip to content

Commit 2a49cee

Browse files
committed
chore(headers): Sort header imports alphabetically
This should make it easier to see missing imports in the future
1 parent 85c6bec commit 2a49cee

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/header/common/mod.rs

+13-13
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
//! strongly-typed theme, the [mime](https://docs.rs/mime) crate
77
//! is used, such as `ContentType(pub Mime)`.
88
9+
pub use self::accept_charset::AcceptCharset;
10+
pub use self::accept_encoding::AcceptEncoding;
11+
pub use self::accept_language::AcceptLanguage;
12+
pub use self::accept_ranges::{AcceptRanges, RangeUnit};
913
pub use self::accept::Accept;
1014
pub use self::access_control_allow_credentials::AccessControlAllowCredentials;
1115
pub use self::access_control_allow_headers::AccessControlAllowHeaders;
@@ -15,18 +19,14 @@ pub use self::access_control_expose_headers::AccessControlExposeHeaders;
1519
pub use self::access_control_max_age::AccessControlMaxAge;
1620
pub use self::access_control_request_headers::AccessControlRequestHeaders;
1721
pub use self::access_control_request_method::AccessControlRequestMethod;
18-
pub use self::accept_charset::AcceptCharset;
19-
pub use self::accept_encoding::AcceptEncoding;
20-
pub use self::accept_language::AcceptLanguage;
21-
pub use self::accept_ranges::{AcceptRanges, RangeUnit};
2222
pub use self::allow::Allow;
2323
pub use self::authorization::{Authorization, Scheme, Basic, Bearer};
2424
pub use self::cache_control::{CacheControl, CacheDirective};
2525
pub use self::connection::{Connection, ConnectionOption};
2626
pub use self::content_disposition::{ContentDisposition, DispositionType, DispositionParam};
27-
pub use self::content_length::ContentLength;
2827
pub use self::content_encoding::ContentEncoding;
2928
pub use self::content_language::ContentLanguage;
29+
pub use self::content_length::ContentLength;
3030
pub use self::content_location::ContentLocation;
3131
pub use self::content_range::{ContentRange, ContentRangeSpec};
3232
pub use self::content_type::ContentType;
@@ -40,9 +40,10 @@ pub use self::host::Host;
4040
pub use self::if_match::IfMatch;
4141
pub use self::if_modified_since::IfModifiedSince;
4242
pub use self::if_none_match::IfNoneMatch;
43-
pub use self::if_unmodified_since::IfUnmodifiedSince;
4443
pub use self::if_range::IfRange;
44+
pub use self::if_unmodified_since::IfUnmodifiedSince;
4545
pub use self::last_modified::LastModified;
46+
pub use self::link::{Link, LinkValue, RelationType, MediaDesc};
4647
pub use self::location::Location;
4748
pub use self::origin::Origin;
4849
pub use self::pragma::Pragma;
@@ -60,7 +61,6 @@ pub use self::upgrade::{Upgrade, Protocol, ProtocolName};
6061
pub use self::user_agent::UserAgent;
6162
pub use self::vary::Vary;
6263
pub use self::warning::Warning;
63-
pub use self::link::{Link, LinkValue, RelationType, MediaDesc};
6464

6565
#[doc(hidden)]
6666
#[macro_export]
@@ -438,6 +438,10 @@ macro_rules! header {
438438
}
439439

440440

441+
mod accept_charset;
442+
mod accept_encoding;
443+
mod accept_language;
444+
mod accept_ranges;
441445
mod accept;
442446
mod access_control_allow_credentials;
443447
mod access_control_allow_headers;
@@ -447,14 +451,9 @@ mod access_control_expose_headers;
447451
mod access_control_max_age;
448452
mod access_control_request_headers;
449453
mod access_control_request_method;
450-
mod accept_charset;
451-
mod accept_encoding;
452-
mod accept_language;
453-
mod accept_ranges;
454454
mod allow;
455455
mod authorization;
456456
mod cache_control;
457-
mod cookie;
458457
mod connection;
459458
mod content_disposition;
460459
mod content_encoding;
@@ -463,6 +462,7 @@ mod content_length;
463462
mod content_location;
464463
mod content_range;
465464
mod content_type;
465+
mod cookie;
466466
mod date;
467467
mod etag;
468468
mod expect;
@@ -475,6 +475,7 @@ mod if_none_match;
475475
mod if_range;
476476
mod if_unmodified_since;
477477
mod last_modified;
478+
mod link;
478479
mod location;
479480
mod origin;
480481
mod pragma;
@@ -492,4 +493,3 @@ mod upgrade;
492493
mod user_agent;
493494
mod vary;
494495
mod warning;
495-
mod link;

0 commit comments

Comments
 (0)