Added warning for missing docs, and added missing docs.

This commit is contained in:
Aaron Weiss 2014-12-01 13:53:22 -05:00
parent 33991dc9a1
commit faf54e1b52
3 changed files with 3 additions and 1 deletions

View file

@ -217,6 +217,7 @@ impl<T: IrcWriter, U: IrcReader> IoStream<T, U> {
}
impl<U: IrcReader> IoStream<MemWriter, U> {
/// Gets the data contained in the MemWriter from this stream.
pub fn value(&self) -> Vec<u8> {
self.writer.get_ref().to_vec()
}

View file

@ -3,6 +3,7 @@
#![crate_type = "lib"]
#![license = "Unlicense"]
#![unstable]
#![warn(missing_docs)]
#![feature(if_let, slicing_syntax)]
#[cfg(feature = "encode")] extern crate encoding;

View file

@ -168,7 +168,7 @@ impl<T> IrcServer<T> where T: IrcStream {
/// An Iterator over an IrcServer's incoming Messages.
#[experimental]
pub struct ServerIterator<'a, T> where T: IrcStream {
pub server: &'a IrcServer<T>
server: &'a IrcServer<T>
}
impl<'a, T> ServerIterator<'a, T> where T: IrcStream {