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

Update tests for new Rust #30

Merged
merged 1 commit into from
Aug 15, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

use extra::net::url::Url;
use url_from_str = extra::net::url::from_str;
use extra::url::Url;
use std::FromStr;
use std::cast;
use std::libc;
use std::cell::Cell;
use std::result;
use util::{DataStream, VoidPtrLike};
use values::*;
use types::*;
Expand All @@ -20,7 +19,7 @@ use computed::ComputedStyle;
use complete::CompleteSelectResults;

fn test_url() -> Url {
result::unwrap(url_from_str("http://foo.com"))
FromStr::from_str("http://foo.com").unwrap()
}

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