mirror of
https://github.com/clap-rs/clap
synced 2024-11-10 23:04:23 +00:00
fix: fixes bug where args are printed out of order with templates
This commit is contained in:
parent
04d27ce803
commit
cd44080650
1 changed files with 0 additions and 2 deletions
|
@ -155,7 +155,6 @@ impl<'a> Help<'a> {
|
||||||
fn write_args_unsorted<'b: 'd, 'c: 'd, 'd, I: 'd>(&mut self, args: I) -> io::Result<()>
|
fn write_args_unsorted<'b: 'd, 'c: 'd, 'd, I: 'd>(&mut self, args: I) -> io::Result<()>
|
||||||
where I: Iterator<Item = &'d ArgWithOrder<'b, 'c>>
|
where I: Iterator<Item = &'d ArgWithOrder<'b, 'c>>
|
||||||
{
|
{
|
||||||
debugln!("fn=write_args_unsorted;");
|
|
||||||
let mut longest = 0;
|
let mut longest = 0;
|
||||||
let mut arg_v = Vec::with_capacity(10);
|
let mut arg_v = Vec::with_capacity(10);
|
||||||
for arg in args.filter(|arg| {
|
for arg in args.filter(|arg| {
|
||||||
|
@ -852,7 +851,6 @@ impl<'a> Help<'a> {
|
||||||
try!(self.writer.write(b"}"));
|
try!(self.writer.write(b"}"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue