Compare commits

..

No commits in common. "ef1e849d0ea7e6472a3fad86ea859a00597d27ea" and "c778365f4c6689372fed09f5e8f26e555d9f2436" have entirely different histories.

2 changed files with 4 additions and 6 deletions

View file

@ -15,9 +15,6 @@
* along with irc-stream. If not, see <https://www.gnu.org/licenses/>.
*/
//! Implements IrcStreamError, an error type
//! that wraps all possible error that are thrown by IrcStream.
use std::{
error::Error,
fmt,
@ -25,6 +22,8 @@ use std::{
str,
};
//! Implements IrcStreamError, an error type
//! that wraps all possible error that are thrown by IrcStream.
/// A custom error type that wraps all error that IrcStream will throw.
#[derive(Debug)]
pub enum IrcStreamError {

View file

@ -15,15 +15,14 @@
* along with irc-stream. If not, see <https://www.gnu.org/licenses/>.
*/
//! This crate provides the `IrcRead` and `IrcWrite` traits and
//! the IrcStream struct that implements them.
pub mod error;
pub use self::error::*;
use std::io::{Read, Write};
use irc_proto::message::Message;
//! This crate provides the `IrcRead` and `IrcWrite` traits and
//! the IrcStream struct that implements them.
/// A trait that mirrors std::io::Read;
/// It requires the `read()` method that returns an IRC Message.
/// The function may or may not block.