diff --git a/stackslib/src/chainstate/stacks/index/marf.rs b/stackslib/src/chainstate/stacks/index/marf.rs index 54a183ababd..63e1c668909 100644 --- a/stackslib/src/chainstate/stacks/index/marf.rs +++ b/stackslib/src/chainstate/stacks/index/marf.rs @@ -1588,12 +1588,12 @@ impl MARF { /// Access internal storage #[cfg(test)] - pub fn borrow_storage_backend(&mut self) -> TrieStorageConnection { + pub fn borrow_storage_backend(&mut self) -> TrieStorageConnection<'_, T> { self.storage.connection() } #[cfg(test)] - pub fn borrow_storage_transaction(&mut self) -> TrieStorageTransaction { + pub fn borrow_storage_transaction(&mut self) -> TrieStorageTransaction<'_, T> { self.storage.transaction().unwrap() } diff --git a/stackslib/src/net/tests/convergence.rs b/stackslib/src/net/tests/convergence.rs index 482b913c8e7..853de5da3ce 100644 --- a/stackslib/src/net/tests/convergence.rs +++ b/stackslib/src/net/tests/convergence.rs @@ -249,7 +249,10 @@ fn test_walk_ring_15_org_biased() { }) } -fn test_walk_ring_ex(peer_configs: &mut Vec, test_pingback: bool) -> Vec { +fn test_walk_ring_ex( + peer_configs: &mut Vec, + test_pingback: bool, +) -> Vec> { // arrange neighbors into a "ring" topology, where // neighbor N is connected to neighbor (N-1)%NUM_NEIGHBORS and (N+1)%NUM_NEIGHBORS. // If test_pingback is true, then neighbor N is only connected to (N+1)%NUM_NEIGHBORS @@ -303,11 +306,11 @@ fn test_walk_ring_ex(peer_configs: &mut Vec, test_pingback: bool peers } -fn test_walk_ring(peer_configs: &mut Vec) -> Vec { +fn test_walk_ring(peer_configs: &mut Vec) -> Vec> { test_walk_ring_ex(peer_configs, false) } -fn test_walk_ring_pingback(peer_configs: &mut Vec) -> Vec { +fn test_walk_ring_pingback(peer_configs: &mut Vec) -> Vec> { test_walk_ring_ex(peer_configs, true) } @@ -453,15 +456,18 @@ fn test_walk_line_15_pingback() { }) } -fn test_walk_line(peer_configs: &mut Vec) -> Vec { +fn test_walk_line(peer_configs: &mut Vec) -> Vec> { test_walk_line_ex(peer_configs, false) } -fn test_walk_line_pingback(peer_configs: &mut Vec) -> Vec { +fn test_walk_line_pingback(peer_configs: &mut Vec) -> Vec> { test_walk_line_ex(peer_configs, true) } -fn test_walk_line_ex(peer_configs: &mut Vec, pingback_test: bool) -> Vec { +fn test_walk_line_ex( + peer_configs: &mut Vec, + pingback_test: bool, +) -> Vec> { // arrange neighbors into a "line" topology. // If pingback_test is true, then the topology is unidirectional: // @@ -659,15 +665,18 @@ fn test_walk_star_15_org_biased() { }) } -fn test_walk_star(peer_configs: &mut Vec) -> Vec { +fn test_walk_star(peer_configs: &mut Vec) -> Vec> { test_walk_star_ex(peer_configs, false) } -fn test_walk_star_pingback(peer_configs: &mut Vec) -> Vec { +fn test_walk_star_pingback(peer_configs: &mut Vec) -> Vec> { test_walk_star_ex(peer_configs, true) } -fn test_walk_star_ex(peer_configs: &mut Vec, pingback_test: bool) -> Vec { +fn test_walk_star_ex( + peer_configs: &mut Vec, + pingback_test: bool, +) -> Vec> { // arrange neighbors into a "star" topology. // If pingback_test is true, then initial connections are unidirectional -- each neighbor (except // for 0) only knows about 0. Neighbor 0 knows about no one. @@ -718,7 +727,7 @@ fn test_walk_star_ex(peer_configs: &mut Vec, pingback_test: bool peers } -fn test_walk_inbound_line(peer_configs: &mut Vec) -> Vec { +fn test_walk_inbound_line(peer_configs: &mut Vec) -> Vec> { // arrange neighbors into a two-tiered "line" topology, where even-numbered neighbors are // "NAT'ed" but connected to both the predecessor and successor odd neighbors. Odd // numbered neighbors are not connected to anyone. The first and last even-numbered diff --git a/stackslib/src/net/tests/download/epoch2x.rs b/stackslib/src/net/tests/download/epoch2x.rs index 3d13ae5b061..883d40eb76f 100644 --- a/stackslib/src/net/tests/download/epoch2x.rs +++ b/stackslib/src/net/tests/download/epoch2x.rs @@ -235,7 +235,7 @@ pub fn run_get_blocks_and_microblocks( mut peer_func: P, mut check_breakage: C, mut done_func: D, -) -> Vec +) -> Vec> where T: FnOnce(&mut Vec), F: FnOnce(