fix: dead_code lint error when base_node_feature is not set
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. )
How Has This Been Tested?
CI must pass (FFI tests)
@@ -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
