getopt.rs(3): fixes formatting issues

This commit is contained in:
Emma Tebibyte 2024-11-27 12:28:32 -07:00
parent 07a2f1efc2
commit a3bbad467e
Signed by: emma
GPG Key ID: 06FA419A1698C270

View File

@ -79,8 +79,8 @@ pub trait GetOpt {
} }
impl GetOpt for Vec<String> { impl GetOpt for Vec<String> {
fn getopt(&self, optstring: &str) -> Option<Opt> { fn getopt(&self, optstring: &str) -> Option<Opt> {
let c_strings: Vec<_> = self let c_strings: Vec<_> = self
.iter() .iter()
.cloned() .cloned()
.map(|x| CString::new(x).unwrap().into_raw()) .map(|x| CString::new(x).unwrap().into_raw())