Skip to content

Commit

Permalink
Fix trivial warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank Murphy committed Jun 12, 2015
1 parent d9085d9 commit 1aa9061
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/ether.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const ETH_P_8021Q : u16 = 0x8100;

type MacAddr = [u8; ETH_ALEN];

#[allow(non_snake_case)]
#[repr(C)]
#[packed]
struct vlan_ethhdr {
Expand Down
1 change: 1 addition & 0 deletions src/ip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ struct iphdr {
daddr: u32
}

#[allow(dead_code)]
pub struct V4Packet<'a> {
header: &'a iphdr,
payload: &'a [u8]
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ use std::sync::{Arc, RwLock};
use std::sync::atomic::{AtomicUsize, Ordering};

use bounded_spsc_queue::Producer;
use rustc_serialize::json;
use rustc_serialize::json::{Json, ToJson};

mod util;
Expand Down Expand Up @@ -59,6 +58,7 @@ struct Writer {
queue: Producer<Packet>
}

#[allow(unused_variables)]
fn main() {
let mut args = env::args();
args.next(); // shift off program name
Expand Down

0 comments on commit 1aa9061

Please sign in to comment.