Made some small assorted changes.
This commit is contained in:
parent
2821b60e83
commit
e7440d9b23
2 changed files with 2 additions and 2 deletions
|
@ -23,7 +23,6 @@ pub trait Connection {
|
|||
fn reconnect(&self) -> Result<()>;
|
||||
}
|
||||
|
||||
|
||||
/// Useful internal type definitions.
|
||||
type NetBufStream = BufStream<NetStream>;
|
||||
|
||||
|
@ -33,6 +32,7 @@ pub struct NetConnection {
|
|||
port: Mutex<u16>,
|
||||
stream: Mutex<NetBufStream>,
|
||||
}
|
||||
|
||||
impl NetConnection {
|
||||
fn new(host: &str, port: u16, stream: NetBufStream) -> NetConnection {
|
||||
NetConnection {
|
||||
|
|
|
@ -12,7 +12,7 @@ pub struct IrcCodec {
|
|||
}
|
||||
|
||||
impl IrcCodec {
|
||||
/// Creates a new instance of IrcCodec wrapping a LineCodec with the specifiec encoding.
|
||||
/// Creates a new instance of IrcCodec wrapping a LineCodec with the specific encoding.
|
||||
pub fn new(label: &str) -> io::Result<IrcCodec> {
|
||||
LineCodec::new(label).map(|codec| IrcCodec { inner: codec })
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue