From cbadc86144796b2363e67fc34f51cc95ed50c1e1 Mon Sep 17 00:00:00 2001 From: Thelie Date: Wed, 5 May 2021 20:54:14 +0200 Subject: [PATCH 1/2] Update 'src/lib.rs' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Doc comments are hard… --- src/lib.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index d8c8879..0475f06 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -15,14 +15,15 @@ * along with irc-stream. If not, see . */ +//! 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. From ff40d7ea255b0a9a23460a9d4770822fc9da4a58 Mon Sep 17 00:00:00 2001 From: Thelie Date: Wed, 5 May 2021 20:55:07 +0200 Subject: [PATCH 2/2] Update 'src/error.rs' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Doc comments are hard… --- src/error.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/error.rs b/src/error.rs index 4f0e79e..23e546c 100644 --- a/src/error.rs +++ b/src/error.rs @@ -15,6 +15,9 @@ * along with irc-stream. If not, see . */ +//! Implements IrcStreamError, an error type +//! that wraps all possible error that are thrown by IrcStream. + use std::{ error::Error, fmt, @@ -22,8 +25,6 @@ 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 {