Updated examples to use prelude.
This commit is contained in:
parent
1828c16766
commit
73f6685114
6 changed files with 6 additions and 17 deletions
|
@ -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();
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue