Skip to content

Commit

Permalink
Suppress warning: variant is never constructed
Browse files Browse the repository at this point in the history
  • Loading branch information
izackwu committed Jun 13, 2020
1 parent cec63fe commit c27266e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use std::thread;

pub enum Event {
Request(TcpStream, Request),
Response(Response),
_Response(Response),
Broadcast(Request),
Command(Command),
}
Expand Down Expand Up @@ -44,7 +44,7 @@ impl Node {
// TODO: result not used
let _result = match node.event_receiver.recv().unwrap() {
Event::Request(stream, request) => node.serve_request(stream, request),
Event::Response(_response) => unimplemented!(),
Event::_Response(_response) => unimplemented!(),
Event::Broadcast(request) => node.broadcast_request(&request),
Event::Command(command) => node.serve_command(command),
};
Expand Down

0 comments on commit c27266e

Please sign in to comment.