From abec9d361ba056d87f78d74b23b97be6b5d1779a Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Mon, 16 Oct 2023 20:04:32 -0700 Subject: [PATCH] Deny warnings in clippy recipe, sort types in traits --- justfile | 2 +- src/table.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/justfile b/justfile index f25e719cb3..2518a92f85 100755 --- a/justfile +++ b/justfile @@ -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 diff --git a/src/table.rs b/src/table.rs index 95e18ce877..0c60602d77 100644 --- a/src/table.rs +++ b/src/table.rs @@ -75,8 +75,8 @@ 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() @@ -84,8 +84,8 @@ impl<'key, V: Keyed<'key>> IntoIterator for Table<'key, V> { } 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()