From 20dc70e0aa9b51ca7e18551da2b4ffc8fa15f455 Mon Sep 17 00:00:00 2001 From: tbro Date: Wed, 1 Nov 2023 10:55:36 -0500 Subject: [PATCH] remove unnecessary `map` from `parse_sans` --- rustls-cert-gen/src/args.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/rustls-cert-gen/src/args.rs b/rustls-cert-gen/src/args.rs index cce041c8..774e12e2 100644 --- a/rustls-cert-gen/src/args.rs +++ b/rustls-cert-gen/src/args.rs @@ -60,7 +60,6 @@ pub struct Options { fn parse_sans(hosts: Vec) -> Vec { hosts .into_iter() - .map(|s| s.to_string()) .map(parse_san) .collect() }