Fixed tests for irc-proto.

This commit is contained in:
Aaron Weiss 2018-03-10 15:59:29 +01:00
parent fcadf49d31
commit 3df2c49074
No known key found for this signature in database
GPG key ID: 047D32DF25DC22EF
2 changed files with 10 additions and 10 deletions

View file

@ -5,7 +5,7 @@ description = "The IRC protocol distilled."
authors = ["Aaron Weiss <awe@pdgn.co>"]
license = "MPL-2.0"
keywords = ["irc", "protocol", "tokio"]
categroies = ["network-programming"]
categories = ["network-programming"]
documentation = "https://docs.rs/irc-proto/"
repository = "https://github.com/aatxe/irc"

View file

@ -31,8 +31,8 @@ impl Message {
///
/// # Example
/// ```
/// # extern crate irc;
/// # use irc::client::prelude::*;
/// # extern crate irc_proto;
/// # use irc_proto::Message;
/// # fn main() {
/// let message = Message::new(
/// Some("nickname!username@hostname"), "JOIN", vec!["#channel"], None
@ -69,8 +69,8 @@ impl Message {
///
/// # Example
/// ```
/// # extern crate irc;
/// # use irc::client::prelude::*;
/// # extern crate irc_proto;
/// # use irc_proto::Message;
/// # fn main() {
/// let message = Message::new(
/// Some("nickname!username@hostname"), "JOIN", vec!["#channel"], None
@ -99,8 +99,8 @@ impl Message {
///
/// # Example
/// ```
/// # extern crate irc;
/// # use irc::client::prelude::*;
/// # extern crate irc_proto;
/// # use irc_proto::Message;
/// # fn main() {
/// let msg1 = Message::new(
/// Some("ada"), "PRIVMSG", vec!["#channel"], Some("Hi, everyone!")
@ -124,8 +124,8 @@ impl Message {
///
/// # Example
/// ```
/// # extern crate irc;
/// # use irc::client::prelude::*;
/// # extern crate irc_proto;
/// # use irc_proto::Message;
/// # fn main() {
/// let msg = Message::new(
/// Some("ada"), "PRIVMSG", vec!["#channel"], Some("Hi, everyone!")
@ -278,7 +278,7 @@ pub struct Tag(pub String, pub Option<String>);
#[cfg(test)]
mod test {
use super::{Message, Tag};
use proto::Command::{PRIVMSG, QUIT, Raw};
use command::Command::{PRIVMSG, QUIT, Raw};
#[test]
fn new() {