diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2013-06-09 23:10:50 +1000 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2013-06-10 23:02:54 +1000 |
| commit | 1e8982bdb26208d9d9ed4cdcbcd21cc9ef35bd46 (patch) | |
| tree | 54f03a318e14bcdbdb56e01b3c80d00a9db87a17 /src/libextra/net_url.rs | |
| parent | 2ff6b298c5f23f48aa993fced41b6e29e446b7ce (diff) | |
std: replace str::each_split* with an iterator
Diffstat (limited to 'src/libextra/net_url.rs')
| -rw-r--r-- | src/libextra/net_url.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libextra/net_url.rs b/src/libextra/net_url.rs index f26019d9282..f7e86b00d23 100644 --- a/src/libextra/net_url.rs +++ b/src/libextra/net_url.rs @@ -334,7 +334,7 @@ fn userinfo_to_str(userinfo: &UserInfo) -> ~str { fn query_from_str(rawquery: &str) -> Query { let mut query: Query = ~[]; if str::len(rawquery) != 0 { - for str::each_split_char(rawquery, '&') |p| { + for rawquery.split_iter('&').advance |p| { let (k, v) = split_char_first(p, '='); query.push((decode_component(k), decode_component(v))); }; |
