Skip to content

Commit

Permalink
Clippy suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
delcin-raj committed Mar 13, 2024
1 parent f9de9b3 commit 57dfaad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@ pub fn select_coin(

#[inline]
fn calculate_waste(
inputs: &Vec<OutputGroup>,
selected_inputs: &Vec<usize>,
inputs: &[OutputGroup],
selected_inputs: &[usize],
options: &CoinSelectionOpt,
accumulated_value: u64,
accumulated_weight: u32,
Expand Down Expand Up @@ -270,7 +270,7 @@ mod test {
let result = select_coin_srd(inputs, options);
assert!(result.is_ok());
let selection_output = result.unwrap();
assert!(selection_output.selected_inputs.len() > 0);
assert!(selection_output.selected_inputs.is_empty());
}

fn test_insufficient_funds() {
Expand Down

0 comments on commit 57dfaad

Please sign in to comment.