Skip to content

Commit bd51e49

Browse files
committed
rust: auto-fixes
1 parent 1360cf3 commit bd51e49

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

ledger/src/staged_ledger/staged_ledger.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1330,7 +1330,7 @@ impl StagedLedger {
13301330
// There's enough work. Check if they satisfy other constraints
13311331
if resources.budget_sufficient() {
13321332
if resources.space_constraint_satisfied() {
1333-
return;
1333+
// Done
13341334
} else if resources.worked_more(constraint_constants) {
13351335
// There are too many fee_transfers(from the proofs)
13361336
// occupying the slots. discard one and check

ledger/src/transaction_pool.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,8 +385,7 @@ impl VkRefcountTable {
385385
return Vec::new();
386386
};
387387

388-
vks.iter()
389-
.map(|(f, _)| self.find_vk(f).expect("malformed Vk_refcount_table.t"))
388+
vks.keys().map(|f| self.find_vk(f).expect("malformed Vk_refcount_table.t"))
390389
.map(|(_, vk)| vk)
391390
.collect()
392391
}

mina-p2p-messages/examples/mina-types-converter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ impl FileFormat {
181181
Ok(())
182182
}
183183
}
184-
type Handler = Box<(dyn Fn(&Cli, &Option<PathBuf>) -> Result<()>)>;
184+
type Handler = Box<dyn Fn(&Cli, &Option<PathBuf>) -> Result<()>>;
185185

186186
struct Formatter {
187187
in_type: &'static str,

p2p/tests/connection.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ async fn mutual_rust_to_rust_many() -> anyhow::Result<()> {
186186
let node_to_node = nodes.into_iter().flat_map(|node| {
187187
nodes
188188
.into_iter()
189-
.filter(move |other_node| (&node != other_node))
189+
.filter(move |other_node| &node != other_node)
190190
.map(move |other_node| (node, other_node))
191191
});
192192

0 commit comments

Comments
 (0)