stris(1): use String::default instead of String::new

This commit is contained in:
dtb 2024-08-28 18:52:23 -06:00
parent 72c3ac5df0
commit f9c84179fe
Signed by: trinity
GPG Key ID: 34C0543BBB6AF81B

View File

@ -43,7 +43,7 @@ fn main() -> ExitCode {
let mut optind = 1; let mut optind = 1;
let mut reqs = Reqs { let mut reqs = Reqs {
ascii: false, blank: false, cntrl: false, digit: false, lower: false, 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") { while let Some(opt) = argv.getopt("7bcdi:lu") {