From c5e99f8afbdf5a3ad717337d6363e1db39a8d379 Mon Sep 17 00:00:00 2001 From: gurkenhabicht Date: Mon, 25 May 2020 00:54:45 +0200 Subject: [PATCH] some corrections --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 3ae93d9..ba083d8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -96,7 +96,7 @@ async fn main() -> Result<(), Error> { println!("{:?}: {:?}, {:?}", entry.path(), file_type, entry.metadata().unwrap().permissions()); if entry.metadata().unwrap().is_file() { let mut magic_number: [u8;4] = [0;4]; - let signature = File::open(entry.path().to_owned()).unwrap().read_exact(&mut magic_number).unwrap(); + let _signature = File::open(entry.path().to_owned()).unwrap().read_exact(&mut magic_number).unwrap(); match magic_number { PCAPNG_SIGNATURE => println!("pcapng!"), PCAP_SIGNATURE => println!("pcap!"),