cleanup: clippy fixups, increase buffer size to 16kb

This commit is contained in:
Keenan Tims 2023-12-12 03:47:44 -08:00
parent 9aaf63b17a
commit e60592e656
Signed by: ktims
GPG Key ID: 11230674D69038D4

View File

@ -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 {