Skip to content

Commit

Permalink
refactor(lib): moved LanguageTag export to header
Browse files Browse the repository at this point in the history
BREAKING CHANGE: LanguageTag used to be at the crate root, but it is now
  in the `hyper::header` module.
  • Loading branch information
seanmonstar committed Jul 14, 2016
1 parent 6d54a4d commit 40745c5
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/header/common/accept_language.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ header! {
///
/// # Examples
/// ```
/// use hyper::LanguageTag;
/// use hyper::header::{Headers, AcceptLanguage, qitem};
/// use hyper::header::{Headers, AcceptLanguage, LanguageTag, qitem};
///
/// let mut headers = Headers::new();
/// let mut langtag: LanguageTag = Default::default();
Expand Down
1 change: 0 additions & 1 deletion src/header/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ macro_rules! __hyper__tm {
use std::str;
use $crate::header::*;
use $crate::mime::*;
use $crate::language_tags::*;
use $crate::method::Method;
use super::$id as HeaderField;
$($tf)*
Expand Down
1 change: 1 addition & 0 deletions src/header/shared/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ pub use cookie::CookieJar;
pub use self::encoding::Encoding;
pub use self::entity::EntityTag;
pub use self::httpdate::HttpDate;
pub use language_tags::LanguageTag;
pub use self::quality_item::{Quality, QualityItem, qitem, q};

mod charset;
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ extern crate test;
pub use url::Url;
pub use client::Client;
pub use error::{Result, Error};
pub use http::{Next, Encoder, Decoder, Control, ControlError};
pub use header::Headers;
pub use http::{Next, Encoder, Decoder, Control, ControlError};
pub use method::Method::{self, Get, Head, Post, Delete};
pub use net::{HttpStream, Transport};
pub use status::StatusCode::{self, Ok, BadRequest, NotFound};
pub use server::Server;
pub use uri::RequestUri;
pub use version::HttpVersion;
pub use language_tags::LanguageTag;

macro_rules! rotor_try {
($e:expr) => ({
Expand Down
4 changes: 3 additions & 1 deletion src/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ pub use self::request::Request;
pub use self::response::Response;

use http::{self, Next};
use net::{Accept, HttpListener, HttpsListener, SslServer, Transport};

pub use net::{Accept, HttpListener, HttpsListener};
use net::{SslServer, Transport};


mod request;
Expand Down

0 comments on commit 40745c5

Please sign in to comment.