Alias the Uri type to String.

Closes #30.
Closes #31.
This commit is contained in:
Bodil Stokke 2019-01-17 12:56:22 +00:00
parent eff3f2289a
commit 77888b20e5
3 changed files with 1 additions and 3 deletions

View File

@ -20,7 +20,6 @@ strum = "0.13.0"
strum_macros = "0.13.0" strum_macros = "0.13.0"
mime = "0.3.12" mime = "0.3.12"
language-tags = "0.2.2" language-tags = "0.2.2"
http = "0.1.13"
htmlescape = "0.3.1" htmlescape = "0.3.1"
proc-macro-hack = "0.5.2" proc-macro-hack = "0.5.2"
proc-macro-nested = "0.1.0" proc-macro-nested = "0.1.0"

View File

@ -195,7 +195,6 @@
extern crate strum_macros; extern crate strum_macros;
pub extern crate htmlescape; pub extern crate htmlescape;
extern crate http;
extern crate language_tags; extern crate language_tags;
extern crate mime; extern crate mime;
extern crate proc_macro_hack; extern crate proc_macro_hack;

View File

@ -14,11 +14,11 @@ pub use self::spacedset::SpacedSet;
pub type ClassList = SpacedSet<Class>; pub type ClassList = SpacedSet<Class>;
pub use http::Uri;
pub use language_tags::LanguageTag; pub use language_tags::LanguageTag;
pub use mime::Mime; pub use mime::Mime;
// FIXME these all need validating types // FIXME these all need validating types
pub type Uri = String;
pub type CharacterEncoding = String; pub type CharacterEncoding = String;
pub type Datetime = String; pub type Datetime = String;
pub type FeaturePolicy = String; pub type FeaturePolicy = String;