Skip to content

Commit

Permalink
fix: dead_code lint error when base_node_feature is not set (#3354)
Browse files Browse the repository at this point in the history
Description
---
Use `new_sorted_unchecked` function to keep clippy happy when base_node feature is not active
in tari_core.

Motivation and Context
---
Causing failed CI build (e.g. #3335 )

How Has This Been Tested?
---
CI must pass (FFI tests)
  • Loading branch information
sdbondi authored Sep 16, 2021
1 parent 154402d commit 7fa0572
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions base_layer/core/src/transactions/aggregated_body.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,8 @@ pub struct AggregateBody {
impl AggregateBody {
/// Create an empty aggregate body
pub fn empty() -> AggregateBody {
AggregateBody {
sorted: false,
inputs: vec![],
outputs: vec![],
kernels: vec![],
}
// UNCHECKED: empty vecs are sorted
AggregateBody::new_sorted_unchecked(vec![], vec![], vec![])
}

/// Create a new aggregate body from provided inputs, outputs and kernels
Expand Down

0 comments on commit 7fa0572

Please sign in to comment.