From f2d346695d9b45537393840666ebe8018bd766db Mon Sep 17 00:00:00 2001 From: Jack Moffitt Date: Fri, 20 Dec 2013 21:50:59 -0700 Subject: [PATCH] Upgrade to latest Rust. --- alert.rc | 4 ++-- linux.rs | 4 ++-- macos.rs | 4 ---- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/alert.rc b/alert.rc index aefa4e7..69a3ac4 100644 --- a/alert.rc +++ b/alert.rc @@ -7,8 +7,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#[link(name="alert", vers="0.1")]; -#[crate_type="lib"]; +#[crate_id = "github.com/mozilla-servo/rust-alert#alert:0.1"]; +#[crate_type = "lib"]; #[cfg(target_os="macos")] extern mod core_foundation; diff --git a/linux.rs b/linux.rs index 996cf0a..d17c9ac 100644 --- a/linux.rs +++ b/linux.rs @@ -8,8 +8,8 @@ // except according to those terms. use AlertMethods; -use std::rt::io; -use std::rt::io::buffered::BufferedReader; +use std::io; +use std::io::buffered::BufferedReader; /// An alert. pub struct Alert { diff --git a/macos.rs b/macos.rs index fd357e4..d64f849 100644 --- a/macos.rs +++ b/macos.rs @@ -29,7 +29,6 @@ pub struct Alert { impl AlertMethods for Alert { /// Creates a new alert with an OK and Cancel button. - #[fixed_stack_segment] fn new(message_text: &str) -> Alert { unsafe { let alert_string: CFString = FromStr::from_str(message_text).unwrap(); @@ -53,7 +52,6 @@ impl AlertMethods for Alert { } } - #[fixed_stack_segment] fn add_prompt(&mut self) { unsafe { // [NSTextField alloc] @@ -81,7 +79,6 @@ impl AlertMethods for Alert { } } - #[fixed_stack_segment] fn run(&self) { unsafe { let selector = sel_registerName(transmute(&"runModal"[0])); @@ -89,7 +86,6 @@ impl AlertMethods for Alert { } } - #[fixed_stack_segment] fn prompt_value(&self) -> ~str { unsafe { // [nstextfield stringValue]