diff options
author | Martin Fischer <martin@push-f.com> | 2021-12-05 01:57:55 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2021-12-05 01:58:26 +0100 |
commit | 5cb747b5c7c052cfafe4b5db6de62ea4f9739873 (patch) | |
tree | 06be1ab6dd98d6f02a99c44d3130ddf2a3f4f952 /src | |
parent | 799f2d02bea9bb16780bce01d4f3d831954bf9f0 (diff) |
rename library to uris
Diffstat (limited to 'src')
-rw-r--r-- | src/authority.rs | 14 | ||||
-rw-r--r-- | src/lib.rs | 8 | ||||
-rw-r--r-- | src/uri.rs | 22 |
3 files changed, 22 insertions, 22 deletions
diff --git a/src/authority.rs b/src/authority.rs index f7505f8..a4a9790 100644 --- a/src/authority.rs +++ b/src/authority.rs @@ -22,10 +22,10 @@ use super::{ /// ## Parsing an Authority into its components /// /// ```rust -/// # extern crate rhymuri; -/// use rhymuri::Authority; +/// # extern crate uris; +/// use uris::Authority; /// -/// # fn main() -> Result<(), rhymuri::Error> { +/// # fn main() -> Result<(), uris::Error> { /// let authority = Authority::parse("nobody@www.example.com:8080")?; /// assert_eq!(Some("nobody".as_bytes()), authority.userinfo()); /// assert_eq!("www.example.com".as_bytes(), authority.host()); @@ -37,10 +37,10 @@ use super::{ /// ## Generating a URI from its components /// /// ```rust -/// # extern crate rhymuri; -/// use rhymuri::Authority; +/// # extern crate uris; +/// use uris::Authority; /// -/// # fn main() -> Result<(), rhymuri::Error> { +/// # fn main() -> Result<(), uris::Error> { /// let mut authority = Authority::default(); /// authority.set_userinfo(Some("nobody").map(Into::into)); /// authority.set_host("www.example.com"); @@ -162,7 +162,7 @@ impl std::fmt::Display for Authority { if validate_ipv6_address(&host_to_string).is_ok() => { write!(f, "[{}]", host_to_string.to_ascii_lowercase())?; - } + }, _ => { write!( f, @@ -22,8 +22,8 @@ //! ## Parsing a URI into its components //! //! ```rust -//! # extern crate rhymuri; -//! use rhymuri::Uri; +//! # extern crate uris; +//! use uris::Uri; //! //! let uri = Uri::parse("http://www.example.com/foo?bar#baz").unwrap(); //! let authority = uri.authority().unwrap(); @@ -40,8 +40,8 @@ //! ## Generating a URI from its components //! //! ```rust -//! # extern crate rhymuri; -//! use rhymuri::{ +//! # extern crate uris; +//! use uris::{ //! Authority, //! Uri, //! }; @@ -44,10 +44,10 @@ use super::{ /// ## Parsing a URI into its components /// /// ```rust -/// # extern crate rhymuri; -/// use rhymuri::Uri; +/// # extern crate uris; +/// use uris::Uri; /// -/// # fn main() -> Result<(), rhymuri::Error> { +/// # fn main() -> Result<(), uris::Error> { /// let uri = Uri::parse("http://www.example.com/foo?bar#baz")?; /// let authority = uri.authority().unwrap(); /// assert_eq!("www.example.com".as_bytes(), authority.host()); @@ -66,8 +66,8 @@ use super::{ /// ## Generating a URI from its components /// /// ```rust -/// # extern crate rhymuri; -/// use rhymuri::{ +/// # extern crate uris; +/// use uris::{ /// Authority, /// Uri, /// }; @@ -244,10 +244,10 @@ impl Uri { /// # Examples /// /// ```rust - /// # extern crate rhymuri; - /// use rhymuri::Uri; + /// # extern crate uris; + /// use uris::Uri; /// - /// # fn main() -> Result<(), rhymuri::Error> { + /// # fn main() -> Result<(), uris::Error> { /// let mut uri = Uri::parse("/a/b/c/./../../g")?; /// uri.normalize(); /// assert_eq!("/a/g", uri.path_to_string()?); @@ -502,10 +502,10 @@ impl Uri { /// # Examples /// /// ```rust - /// # extern crate rhymuri; - /// use rhymuri::Uri; + /// # extern crate uris; + /// use uris::Uri; /// - /// # fn main() -> Result<(), rhymuri::Error> { + /// # fn main() -> Result<(), uris::Error> { /// let base = Uri::parse("http://a/b/c/d;p?q")?; /// let relative_reference = Uri::parse("g;x?y#s")?; /// let resolved = base.resolve(&relative_reference); |