diff --git a/src/sharry/uri.rs b/src/sharry/uri.rs index 1a7d424..301c98b 100644 --- a/src/sharry/uri.rs +++ b/src/sharry/uri.rs @@ -137,7 +137,7 @@ mod tests { for (good, expected) in cases { let uri = Uri::from(good.to_string()); - check_trait(&expected, &uri.to_string(), "From", "Uri"); + check_trait(&expected, &uri.0, "From", "Uri"); } } @@ -159,7 +159,7 @@ mod tests { for bad in cases { let uri = Uri::from(bad.to_string()); - check_trait(&bad, &uri.to_string(), "From", "Uri"); + check_trait(&bad, &uri.0, "From", "Uri"); } }