Skip to content

Commit

Permalink
Split into lib+bin
Browse files Browse the repository at this point in the history
  • Loading branch information
Morganamilo committed Jun 8, 2021
1 parent 5c75697 commit dc33091
Show file tree
Hide file tree
Showing 3 changed files with 440 additions and 436 deletions.
3 changes: 2 additions & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,8 @@ impl Config {
self.globals.as_str()
}

pub fn parse_args<S: AsRef<str>, I: Iterator<Item = S>>(&mut self, iter: I) -> Result<()> {
pub fn parse_args<S: AsRef<str>, I: IntoIterator<Item = S>>(&mut self, iter: I) -> Result<()> {
let iter = iter.into_iter();
let mut iter = iter.peekable();
let mut op_count = 0;
let mut end_of_ops = false;
Expand Down
Loading

0 comments on commit dc33091

Please sign in to comment.