Fix clippy warnings

This commit is contained in:
Jon Häggblad
2022-04-03 20:49:12 +02:00
parent 5bb516471e
commit 58fd40fb8e
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -215,7 +215,7 @@ mod test {
));
assert!(!BandwidthVoucher::verify_against_plain(
&voucher.get_public_attributes(),
&vec![],
&[],
));
assert!(!BandwidthVoucher::verify_against_plain(
&voucher.get_public_attributes(),
+1 -1
View File
@@ -114,7 +114,7 @@ mod test {
&params,
"1234".to_string(),
VOUCHER_INFO.to_string(),
tx_hash.clone(),
tx_hash,
identity::PrivateKey::from_base58_string(
identity::KeyPair::new(&mut rng)
.private_key()
+2 -2
View File
@@ -139,7 +139,7 @@ async fn signed_before() {
&params,
"1234".to_string(),
VOUCHER_INFO.to_string(),
tx_hash.clone(),
tx_hash,
identity::PrivateKey::from_base58_string(
identity::KeyPair::new(&mut rng)
.private_key()
@@ -335,7 +335,7 @@ async fn blind_sign_correct() {
&params,
"1234".to_string(),
VOUCHER_INFO.to_string(),
tx_hash.clone(),
tx_hash,
identity::PrivateKey::from_base58_string(
identity::KeyPair::new(&mut rng)
.private_key()