Skip to content

Commit

Permalink
Deny warnings in clippy recipe, sort types in traits
Browse files Browse the repository at this point in the history
  • Loading branch information
casey committed Oct 17, 2023
1 parent 402a450 commit abec9d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ test:

ci: build-book
cargo test --all
cargo clippy --all --all-targets
cargo clippy --all --all-targets -- --deny warnings
cargo fmt --all -- --check
./bin/forbid
cargo update --locked --package just
Expand Down
4 changes: 2 additions & 2 deletions src/table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,17 +75,17 @@ impl<'key, V: Keyed<'key>> Index<&'key str> for Table<'key, V> {
}

impl<'key, V: Keyed<'key>> IntoIterator for Table<'key, V> {
type Item = (&'key str, V);
type IntoIter = btree_map::IntoIter<&'key str, V>;
type Item = (&'key str, V);

fn into_iter(self) -> btree_map::IntoIter<&'key str, V> {
self.map.into_iter()
}
}

impl<'table, V: Keyed<'table> + 'table> IntoIterator for &'table Table<'table, V> {
type Item = (&'table &'table str, &'table V);
type IntoIter = btree_map::Iter<'table, &'table str, V>;
type Item = (&'table &'table str, &'table V);

fn into_iter(self) -> btree_map::Iter<'table, &'table str, V> {
self.map.iter()
Expand Down

0 comments on commit abec9d3

Please sign in to comment.