Updated examples to use prelude.

This commit is contained in:
Aaron Weiss 2015-02-22 21:22:33 -05:00
parent 1828c16766
commit 73f6685114
6 changed files with 6 additions and 17 deletions

View file

@ -16,8 +16,7 @@ documentation. You'll also be able to find a small template to get a feel for th
```rust
extern crate irc;
use irc::client::server::{IrcServer, Server};
use irc::client::server::utils::Wrapper;
use irc::client::prelude::*;
fn main() {
let irc_server = IrcServer::new("config.json").unwrap();

View file

@ -3,9 +3,7 @@ extern crate irc;
use std::default::Default;
use std::sync::Arc;
use std::thread::spawn;
use irc::client::data::{Command, Config};
use irc::client::server::{IrcServer, Server};
use irc::client::server::utils::Wrapper;
use irc::client::prelude::*;
fn main() {
let config = Config {

View file

@ -3,9 +3,7 @@ extern crate irc;
use std::default::Default;
use std::sync::Arc;
use std::thread::spawn;
use irc::client::data::config::Config;
use irc::client::server::{IrcServer, Server};
use irc::client::server::utils::Wrapper;
use irc::client::prelude::*;
fn main() {
let config = Config {

View file

@ -1,9 +1,7 @@
extern crate irc;
use std::default::Default;
use irc::client::data::config::Config;
use irc::client::server::{IrcServer, Server};
use irc::client::server::utils::Wrapper;
use irc::client::prelude::*;
fn main() {
let config = Config {

View file

@ -1,9 +1,7 @@
extern crate irc;
use std::default::Default;
use irc::client::data::config::Config;
use irc::client::server::{IrcServer, Server};
use irc::client::server::utils::Wrapper;
use irc::client::prelude::*;
fn main() {
let config = Config {

View file

@ -6,9 +6,7 @@ use std::old_io::timer::sleep;
use std::sync::Arc;
use std::thread::spawn;
use std::time::duration::Duration;
use irc::client::data::config::Config;
use irc::client::server::{IrcServer, Server};
use irc::client::server::utils::Wrapper;
use irc::client::prelude::*;
fn main() {
let config = Config {