Explorar el Código

Include username and password in Url's Debug implementation

Valentin hace 5 años
padre
commit
b9ee40d348
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      url/src/lib.rs

+ 2 - 0
url/src/lib.rs

@@ -2374,6 +2374,8 @@ impl fmt::Debug for Url {
             .field("path", &self.path())
             .field("query", &self.query())
             .field("fragment", &self.fragment())
+            .field("username", &self.username())
+            .field("password", &self.password())
             .finish()
     }
 }