diff options
| author | Steven Fackler <sfackler@gmail.com> | 2014-03-26 22:46:25 -0700 |
|---|---|---|
| committer | Steven Fackler <sfackler@gmail.com> | 2014-04-06 15:40:01 -0700 |
| commit | 49a80810950a2f2ea12f5efd4cf188cb68cb1283 (patch) | |
| tree | 093ff0d95856e003e28560bc224cac574a003461 /src/liburl | |
| parent | d0e60b72ee3f5fb07b01143d82362cb42307f32d (diff) | |
| download | rust-49a80810950a2f2ea12f5efd4cf188cb68cb1283.tar.gz rust-49a80810950a2f2ea12f5efd4cf188cb68cb1283.zip | |
De-~[] Mem{Reader,Writer}
Diffstat (limited to 'src/liburl')
| -rw-r--r-- | src/liburl/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liburl/lib.rs b/src/liburl/lib.rs index 1146e602ac5..cd8e36b3c93 100644 --- a/src/liburl/lib.rs +++ b/src/liburl/lib.rs @@ -460,7 +460,7 @@ pub fn query_to_str(query: &Query) -> ~str { write!(&mut writer, "{}={}", encode_component(*k), encode_component(*v)); } - str::from_utf8_lossy(writer.unwrap()).into_owned() + str::from_utf8_lossy(writer.unwrap().as_slice()).into_owned() } /** |
