getopt.rs(3): fixes formatting issues
This commit is contained in:
parent
07a2f1efc2
commit
a3bbad467e
@ -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())
|
||||||