Skip to content

Commit

Permalink
Drop superfluous From implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
mmarx committed Nov 20, 2023
1 parent 59760d2 commit ca1beee
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion nemo/src/io/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ impl<'a> RuleParser<'a> {
self.parse_open_brace(),
map(
separated_list0(self.parse_comma(), self.parse_map_entry()),
Map::from,
Map::from_iter,
),
self.parse_close_brace(),
),
Expand Down
6 changes: 0 additions & 6 deletions nemo/src/model/rule_model/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,3 @@ impl FromIterator<(Key, Constant)> for Map {
}
}
}

impl From<Vec<(Key, Constant)>> for Map {
fn from(pairs: Vec<(Key, Constant)>) -> Self {
pairs.into_iter().collect()
}
}

0 comments on commit ca1beee

Please sign in to comment.