Fix clippy warnings
This commit is contained in:
@@ -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(),
|
||||
|
||||
@@ -114,7 +114,7 @@ mod test {
|
||||
¶ms,
|
||||
"1234".to_string(),
|
||||
VOUCHER_INFO.to_string(),
|
||||
tx_hash.clone(),
|
||||
tx_hash,
|
||||
identity::PrivateKey::from_base58_string(
|
||||
identity::KeyPair::new(&mut rng)
|
||||
.private_key()
|
||||
|
||||
@@ -139,7 +139,7 @@ async fn signed_before() {
|
||||
¶ms,
|
||||
"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() {
|
||||
¶ms,
|
||||
"1234".to_string(),
|
||||
VOUCHER_INFO.to_string(),
|
||||
tx_hash.clone(),
|
||||
tx_hash,
|
||||
identity::PrivateKey::from_base58_string(
|
||||
identity::KeyPair::new(&mut rng)
|
||||
.private_key()
|
||||
|
||||
Reference in New Issue
Block a user