aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/uri.rs11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/uri.rs b/src/uri.rs
index bd1b82c..da706f2 100644
--- a/src/uri.rs
+++ b/src/uri.rs
@@ -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,