Skip to content

Commit 0569272

Browse files
committed
fix(data_structures): remove useless clippy allow directives
1 parent 3f9a946 commit 0569272

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

data_structures/src/transaction_factory.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,6 @@ pub trait OutputsCollection {
116116

117117
/// Generic inputs/outputs builder: can be used to build
118118
/// value transfer transactions and data request transactions.
119-
#[allow(clippy::cast_sign_loss)]
120-
#[allow(clippy::cast_possible_truncation)]
121119
#[allow(clippy::too_many_arguments)]
122120
fn build_inputs_outputs(
123121
&mut self,
@@ -289,7 +287,6 @@ pub fn insert_change_output(
289287
}
290288

291289
/// Build value transfer transaction with the given outputs and fee.
292-
#[allow(clippy::cast_precision_loss)]
293290
#[allow(clippy::too_many_arguments)]
294291
pub fn build_vtt(
295292
outputs: Vec<ValueTransferOutput>,
@@ -337,7 +334,6 @@ pub fn build_vtt(
337334
}
338335

339336
/// Build data request transaction with the given outputs and fee.
340-
#[allow(clippy::cast_precision_loss)]
341337
#[allow(clippy::too_many_arguments)]
342338
pub fn build_drt(
343339
dr_output: DataRequestOutput,
@@ -413,7 +409,6 @@ pub fn check_commit_collateral(
413409
}
414410

415411
/// Build inputs and outputs to be used as the collateral in a CommitTransaction
416-
#[allow(clippy::cast_precision_loss)]
417412
pub fn build_commit_collateral(
418413
collateral: Wit,
419414
own_utxos: &mut OwnUnspentOutputsPool,

wallet/src/repository/wallet/tests/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2251,7 +2251,7 @@ fn test_create_dr_components_weighted_fee_weight_too_large() {
22512251
witnesses: 1000,
22522252
..DataRequestOutput::default()
22532253
};
2254-
let fee = Fee::default();
2254+
let fee = Fee::relative_from_float(0);
22552255
let err = wallet
22562256
.create_dr_transaction_components(&mut state, request.clone(), fee)
22572257
.unwrap_err();

0 commit comments

Comments
 (0)