From 77888b20e53feb3a459bdf8755af99321875a1da Mon Sep 17 00:00:00 2001 From: Bodil Stokke Date: Thu, 17 Jan 2019 12:56:22 +0000 Subject: [PATCH] Alias the Uri type to String. Closes #30. Closes #31. --- typed-html/Cargo.toml | 1 - typed-html/src/lib.rs | 1 - typed-html/src/types/mod.rs | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/typed-html/Cargo.toml b/typed-html/Cargo.toml index 92c8a1d..8ef3ad2 100644 --- a/typed-html/Cargo.toml +++ b/typed-html/Cargo.toml @@ -20,7 +20,6 @@ strum = "0.13.0" strum_macros = "0.13.0" mime = "0.3.12" language-tags = "0.2.2" -http = "0.1.13" htmlescape = "0.3.1" proc-macro-hack = "0.5.2" proc-macro-nested = "0.1.0" diff --git a/typed-html/src/lib.rs b/typed-html/src/lib.rs index ac01ba6..a58f498 100644 --- a/typed-html/src/lib.rs +++ b/typed-html/src/lib.rs @@ -195,7 +195,6 @@ extern crate strum_macros; pub extern crate htmlescape; -extern crate http; extern crate language_tags; extern crate mime; extern crate proc_macro_hack; diff --git a/typed-html/src/types/mod.rs b/typed-html/src/types/mod.rs index cd0fd31..0b91ead 100644 --- a/typed-html/src/types/mod.rs +++ b/typed-html/src/types/mod.rs @@ -14,11 +14,11 @@ pub use self::spacedset::SpacedSet; pub type ClassList = SpacedSet; -pub use http::Uri; pub use language_tags::LanguageTag; pub use mime::Mime; // FIXME these all need validating types +pub type Uri = String; pub type CharacterEncoding = String; pub type Datetime = String; pub type FeaturePolicy = String;