aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/main/servo.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/main/servo.rs')
-rwxr-xr-xsrc/components/main/servo.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/main/servo.rs b/src/components/main/servo.rs
index 37b9092a7c0..1194d4b598e 100755
--- a/src/components/main/servo.rs
+++ b/src/components/main/servo.rs
@@ -192,7 +192,7 @@ fn run(opts: opts::Opts) {
let url = if filename.starts_with("data:") {
// As a hack for easier command-line testing,
// assume that data URLs are not URL-encoded.
- Url::new(~"data", None, ~"", None,
+ Url::new(~"data", None, "".to_owned(), None,
filename.slice_from(5).to_owned(), Vec::new(), None)
} else {
parse_url(*filename, None)