Skip to content
This repository was archived by the owner on Jul 10, 2023. It is now read-only.

Commit b66cc67

Browse files
committed
Merge pull request #30 from kmcallister/rust-upgrade
Update tests for new Rust
2 parents 4cf8981 + c679639 commit b66cc67

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22
* License, v. 2.0. If a copy of the MPL was not distributed with this
33
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
44

5-
use extra::net::url::Url;
6-
use url_from_str = extra::net::url::from_str;
5+
use extra::url::Url;
6+
use std::FromStr;
77
use std::cast;
88
use std::libc;
99
use std::cell::Cell;
10-
use std::result;
1110
use util::{DataStream, VoidPtrLike};
1211
use values::*;
1312
use types::*;
@@ -20,7 +19,7 @@ use computed::ComputedStyle;
2019
use complete::CompleteSelectResults;
2120

2221
fn test_url() -> Url {
23-
result::unwrap(url_from_str("http://foo.com"))
22+
FromStr::from_str("http://foo.com").unwrap()
2423
}
2524

2625
fn style_stream(style: &str) -> DataStream {

0 commit comments

Comments
 (0)