aboutsummaryrefslogtreecommitdiff
path: root/src/origins.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/origins.rs')
-rw-r--r--src/origins.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/origins.rs b/src/origins.rs
index c2a7dc1..0cc0bc2 100644
--- a/src/origins.rs
+++ b/src/origins.rs
@@ -23,7 +23,7 @@ impl FromStr for HttpOrigin {
return Err("expected http:// or https:// scheme");
}
if url.path() != "/" {
- return Err("path must be /".into());
+ return Err("path must be /");
}
Ok(HttpOrigin {
origin: url.origin().ascii_serialization(),