Skip to content

Commit 04a2fa1

Browse files
committed
fix format
1 parent f15b60c commit 04a2fa1

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

examples/packets-dump.rs

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
use std::cmp::{max, Ordering, Reverse};
12
use std::collections::BinaryHeap;
23
use std::fmt::Formatter;
34
use std::time::Duration;
@@ -9,7 +10,6 @@ use pcap::Capture;
910
use structopt::StructOpt;
1011

1112
use network_parser_combinator::parse_ethernet_packet;
12-
use std::cmp::{max, Ordering, Reverse};
1313

1414
#[derive(StructOpt)]
1515
struct Cli {
@@ -155,15 +155,17 @@ fn main() {
155155
worker.join().unwrap()
156156
}
157157
})
158-
.unwrap();
158+
.unwrap();
159159
}
160160

161161
#[cfg(test)]
162162
mod tests {
163-
use crate::{ParsedPacket, ParsedPacketsPrintBuffer};
164-
use network_parser_combinator::Protocol;
165163
use std::error::Error;
166164

165+
use network_parser_combinator::Protocol;
166+
167+
use crate::{ParsedPacket, ParsedPacketsPrintBuffer};
168+
167169
#[test]
168170
fn print_buffer_add_on_packet_with_non_sequential_count_save_in_buffer(
169171
) -> Result<(), Box<dyn Error>> {

0 commit comments

Comments
 (0)