diff options
author | Nora Widdecke <nora@sequoia-pgp.org> | 2021-11-25 20:07:37 +0100 |
---|---|---|
committer | Nora Widdecke <nora@sequoia-pgp.org> | 2021-11-29 11:53:56 +0100 |
commit | 6c161b47eed93e1fe98f53c2961d32c5712a3ee2 (patch) | |
tree | cfd098242108129a95d79a791ef09c668af03eb4 /openpgp | |
parent | 7f55ca4fb8dc55ba82b170f776f3c5690e9c2824 (diff) |
openpgp: Remove unnecessary factors.
- Clippy lint: clippy::identity_op.
Diffstat (limited to 'openpgp')
-rw-r--r-- | openpgp/benches/decrypt_message.rs | 2 | ||||
-rw-r--r-- | openpgp/benches/decrypt_verify_message.rs | 2 | ||||
-rw-r--r-- | openpgp/benches/encrypt_message.rs | 2 | ||||
-rw-r--r-- | openpgp/benches/encrypt_sign_message.rs | 2 | ||||
-rw-r--r-- | openpgp/benches/sign_message.rs | 2 | ||||
-rw-r--r-- | openpgp/benches/verify_message.rs | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/openpgp/benches/decrypt_message.rs b/openpgp/benches/decrypt_message.rs index 9ea96bfc..d1dca1d3 100644 --- a/openpgp/benches/decrypt_message.rs +++ b/openpgp/benches/decrypt_message.rs @@ -14,7 +14,7 @@ lazy_static::lazy_static! { static ref TESTY: Cert = Cert::from_bytes(&include_bytes!("../tests/data/keys/testy-private.pgp")[..]) .unwrap(); - static ref ZEROS_1_MB: Vec<u8> = vec![0; 1 * 1024 * 1024]; + static ref ZEROS_1_MB: Vec<u8> = vec![0; 1024 * 1024]; static ref ZEROS_10_MB: Vec<u8> = vec![0; 10 * 1024 * 1024]; } diff --git a/openpgp/benches/decrypt_verify_message.rs b/openpgp/benches/decrypt_verify_message.rs index 12a48642..c85e6d4e 100644 --- a/openpgp/benches/decrypt_verify_message.rs +++ b/openpgp/benches/decrypt_verify_message.rs @@ -15,7 +15,7 @@ lazy_static::lazy_static! { static ref RECIPIENT: Cert = Cert::from_bytes(&include_bytes!("../tests/data/keys/recipient.pgp")[..]) .unwrap(); - static ref ZEROS_1_MB: Vec<u8> = vec![0; 1 * 1024 * 1024]; + static ref ZEROS_1_MB: Vec<u8> = vec![0; 1024 * 1024]; static ref ZEROS_10_MB: Vec<u8> = vec![0; 10 * 1024 * 1024]; } diff --git a/openpgp/benches/encrypt_message.rs b/openpgp/benches/encrypt_message.rs index 93f5925d..b2c18cb7 100644 --- a/openpgp/benches/encrypt_message.rs +++ b/openpgp/benches/encrypt_message.rs @@ -7,7 +7,7 @@ use openpgp::parse::Parse; use crate::common::encrypt; lazy_static::lazy_static! { - static ref ZEROS_1_MB: Vec<u8> = vec![0; 1 * 1024 * 1024]; + static ref ZEROS_1_MB: Vec<u8> = vec![0; 1024 * 1024]; static ref ZEROS_10_MB: Vec<u8> = vec![0; 10 * 1024 * 1024]; } diff --git a/openpgp/benches/encrypt_sign_message.rs b/openpgp/benches/encrypt_sign_message.rs index 62863eb5..ed9d586d 100644 --- a/openpgp/benches/encrypt_sign_message.rs +++ b/openpgp/benches/encrypt_sign_message.rs @@ -7,7 +7,7 @@ use openpgp::parse::Parse; use crate::common::encrypt; lazy_static::lazy_static! { - static ref ZEROS_1_MB: Vec<u8> = vec![0; 1 * 1024 * 1024]; + static ref ZEROS_1_MB: Vec<u8> = vec![0; 1024 * 1024]; static ref ZEROS_10_MB: Vec<u8> = vec![0; 10 * 1024 * 1024]; } diff --git a/openpgp/benches/sign_message.rs b/openpgp/benches/sign_message.rs index 267ea91d..8241da80 100644 --- a/openpgp/benches/sign_message.rs +++ b/openpgp/benches/sign_message.rs @@ -9,7 +9,7 @@ use openpgp::parse::Parse; use crate::common::encrypt; lazy_static::lazy_static! { - static ref ZEROS_1_MB: Vec<u8> = vec![0; 1 * 1024 * 1024]; + static ref ZEROS_1_MB: Vec<u8> = vec![0; 1024 * 1024]; static ref ZEROS_10_MB: Vec<u8> = vec![0; 10 * 1024 * 1024]; } diff --git a/openpgp/benches/verify_message.rs b/openpgp/benches/verify_message.rs index 200cfb93..50b60c0f 100644 --- a/openpgp/benches/verify_message.rs +++ b/openpgp/benches/verify_message.rs @@ -10,7 +10,7 @@ lazy_static::lazy_static! { static ref SENDER: Cert = Cert::from_bytes(&include_bytes!("../tests/data/keys/sender.pgp")[..]) .unwrap(); - static ref ZEROS_1_MB: Vec<u8> = vec![0; 1 * 1024 * 1024]; + static ref ZEROS_1_MB: Vec<u8> = vec![0; 1024 * 1024]; static ref ZEROS_10_MB: Vec<u8> = vec![0; 10 * 1024 * 1024]; } |