Updated for Rust master.

This commit is contained in:
Aaron Weiss 2015-04-03 00:56:42 -04:00
parent a659f1bb1a
commit 23fa48d41e
6 changed files with 29 additions and 30 deletions

View file

@ -1,10 +1,8 @@
#![feature(std_misc, thread_sleep)]
extern crate irc;
use std::default::Default;
use std::sync::Arc;
use std::thread::{sleep, spawn};
use std::time::duration::Duration;
use std::thread::{sleep_ms, spawn};
use irc::client::prelude::*;
fn main() {
@ -23,6 +21,6 @@ fn main() {
});
loop {
server.send_privmsg("#vana", "TWEET TWEET").unwrap();
sleep(Duration::seconds(10))
sleep_ms(10 * 1000);
}
}