From e60592e65616b2f87fdf9cd2e26c467acc96cdd7 Mon Sep 17 00:00:00 2001 From: Keenan Tims Date: Tue, 12 Dec 2023 03:47:44 -0800 Subject: [PATCH] cleanup: clippy fixups, increase buffer size to 16kb --- src/main.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 851eebc..a11f665 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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 {