Improve fmt::Debug of Client and ClientBuilder

This commit is contained in:
Sean McArthur
2019-10-09 12:15:27 -07:00
parent 75ee4646ac
commit 6b5726aaa8
5 changed files with 141 additions and 16 deletions

View File

@@ -48,7 +48,7 @@ use winreg::RegKey;
/// # Ok(())
/// # }
/// ```
#[derive(Clone, Debug)]
#[derive(Clone)]
pub struct Proxy {
intercept: Intercept,
}
@@ -262,6 +262,12 @@ impl Proxy {
}
}
impl fmt::Debug for Proxy {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.debug_tuple("Proxy").field(&self.intercept).finish()
}
}
impl ProxyScheme {
// To start conservative, keep builders private for now.