mirror of
https://github.com/ktims/rs-aggregate.git
synced 2024-11-15 23:27:18 -08:00
cleanup: clippy fixups, increase buffer size to 16kb
This commit is contained in:
parent
9aaf63b17a
commit
e60592e656
@ -10,7 +10,7 @@ use std::io::{BufRead, Write};
|
|||||||
|
|
||||||
use clap::Parser;
|
use clap::Parser;
|
||||||
|
|
||||||
const WRITER_BUFSIZE: usize = 1 * 1024;
|
const WRITER_BUFSIZE: usize = 16 * 1024;
|
||||||
|
|
||||||
#[derive(Parser)]
|
#[derive(Parser)]
|
||||||
#[command(author, version, about)]
|
#[command(author, version, about)]
|
||||||
@ -73,7 +73,8 @@ impl App {
|
|||||||
|
|
||||||
if self.args.only_v4 && pfx.is_ipv6() {
|
if self.args.only_v4 && pfx.is_ipv6() {
|
||||||
return;
|
return;
|
||||||
} else if self.args.only_v6 && pfx.is_ipv4() {
|
}
|
||||||
|
if self.args.only_v6 && pfx.is_ipv4() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if self.args.max_prefixlen >= pfx {
|
if self.args.max_prefixlen >= pfx {
|
||||||
|
Loading…
Reference in New Issue
Block a user