From f9c84179fe3b65a14c759160fbcbfb22b3e141d3 Mon Sep 17 00:00:00 2001 From: DTB Date: Wed, 28 Aug 2024 18:52:23 -0600 Subject: [PATCH] stris(1): use String::default instead of String::new --- src/stris.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stris.rs b/src/stris.rs index 95a59b0..53a5a88 100644 --- a/src/stris.rs +++ b/src/stris.rs @@ -43,7 +43,7 @@ fn main() -> ExitCode { let mut optind = 1; let mut reqs = Reqs { ascii: false, blank: false, cntrl: false, digit: false, lower: false, - upper: false, inuse: false, extra: String::new() + upper: false, inuse: false, extra: String::default() }; while let Some(opt) = argv.getopt("7bcdi:lu") {