Skip to content

Commit

Permalink
Remove warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Apr 8, 2016
1 parent 06bce1e commit 03d60c8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
13 changes: 5 additions & 8 deletions mio/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@ extern crate mio;
extern crate futures;

use std::collections::HashMap;
use std::mem;
use std::slice;
use std::net::SocketAddr;
use std::io;
use std::sync::Arc;

// use self::mio::{TryRead, TryWrite};
//
Expand Down Expand Up @@ -139,7 +136,7 @@ impl TcpStream {
}

// TODO: give back the buffer
pub fn read(&self, into: Vec<u8>) -> Box<IoFuture<Vec<u8>>> {
pub fn read(&self, _into: Vec<u8>) -> Box<IoFuture<Vec<u8>>> {
loop {}
// let slot = Arc::new(Slot::new(None));
// Ok(TcpRead {
Expand Down Expand Up @@ -366,18 +363,18 @@ impl mio::Handler for Inner {
type Message = Message;

fn ready(&mut self,
io: &mut mio::EventLoop<Self>,
_io: &mut mio::EventLoop<Self>,
token: mio::Token,
events: mio::EventSet) {
_events: mio::EventSet) {
if let Some(token) = self.done.remove(&token.as_usize()) {
token.finish(());
}
// println!("{:?}: {:?}", token, events);
}

fn notify(&mut self,
io: &mut mio::EventLoop<Self>,
msg: Message) {
_io: &mut mio::EventLoop<Self>,
_msg: Message) {
println!("msg");
}
}
2 changes: 1 addition & 1 deletion mio/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
extern crate futuremio;
extern crate futures;

use futures::Future;
// use futures::Future;

fn main() {
// let l = futuremio::Loop::new().unwrap();
Expand Down

0 comments on commit 03d60c8

Please sign in to comment.