* Add clippy config and remove .cargo from gitignore

* first fixes

* Clippyfied

* Add clippy CI job

* comment out rusty-cachier

* minor

* fix ci

* remove DAG from check-dependent-project

* add DAG to clippy

Co-authored-by: alvicsam <alvicsam@gmail.com>
This commit is contained in:
alexgparity
2022-11-30 09:34:06 +01:00
committed by GitHub
parent b76086c617
commit 9ea14e66c8
67 changed files with 338 additions and 351 deletions
@@ -94,7 +94,7 @@ impl SessionGridTopology {
let n = &self.canonical_shuffling[r_n];
grid_subset.validator_indices_x.insert(n.validator_index);
for p in &n.peer_ids {
grid_subset.peers_x.insert(p.clone());
grid_subset.peers_x.insert(*p);
}
}
@@ -102,7 +102,7 @@ impl SessionGridTopology {
let n = &self.canonical_shuffling[c_n];
grid_subset.validator_indices_y.insert(n.validator_index);
for p in &n.peer_ids {
grid_subset.peers_y.insert(p.clone());
grid_subset.peers_y.insert(*p);
}
}
+1 -1
View File
@@ -207,7 +207,7 @@ impl View {
}
/// Obtain an iterator over all heads.
pub fn iter<'a>(&'a self) -> impl Iterator<Item = &'a Hash> {
pub fn iter(&self) -> impl Iterator<Item = &Hash> {
self.heads.iter()
}