mirror of
https://github.com/ktims/rs-aggregate.git
synced 2025-01-18 01:02:53 -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;
|
||||
|
||||
const WRITER_BUFSIZE: usize = 1 * 1024;
|
||||
const WRITER_BUFSIZE: usize = 16 * 1024;
|
||||
|
||||
#[derive(Parser)]
|
||||
#[command(author, version, about)]
|
||||
@ -73,7 +73,8 @@ impl App {
|
||||
|
||||
if self.args.only_v4 && pfx.is_ipv6() {
|
||||
return;
|
||||
} else if self.args.only_v6 && pfx.is_ipv4() {
|
||||
}
|
||||
if self.args.only_v6 && pfx.is_ipv4() {
|
||||
return;
|
||||
}
|
||||
if self.args.max_prefixlen >= pfx {
|
||||
|
Loading…
x
Reference in New Issue
Block a user