diff options
-rw-r--r-- | src/uri.rs | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -97,7 +97,7 @@ use super::{ /// [slice]: https://doc.rust-lang.org/std/primitive.slice.html /// [`TryFrom::try_from`]: https://doc.rust-lang.org/std/convert/trait.TryFrom.html#tymethod.try_from /// [`TryInto::try_into`]: https://doc.rust-lang.org/std/convert/trait.TryInto.html#tymethod.try_into -#[derive(Clone, Debug, Default, PartialEq)] +#[derive(Clone, Default, PartialEq)] pub struct Uri { scheme: Option<String>, authority: Option<Authority>, @@ -775,6 +775,15 @@ impl Uri { } } +impl std::fmt::Debug for Uri { + fn fmt( + &self, + f: &mut std::fmt::Formatter<'_>, + ) -> std::fmt::Result { + f.debug_tuple("Uri").field(&self.to_string()).finish() + } +} + impl std::fmt::Display for Uri { fn fmt( &self, |