Skip to content

Commit f23114d

Browse files
committed
clippy
1 parent 1caeabe commit f23114d

File tree

17 files changed

+29
-78
lines changed

17 files changed

+29
-78
lines changed

Cargo.lock

Lines changed: 4 additions & 68 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ members = [
115115
"common/wireguard-private-metadata/tests",
116116
"common/wireguard-types",
117117
"common/zulip-client",
118-
"documentation/autodoc",
118+
# "documentation/autodoc",
119119
"gateway",
120120
"nym-api",
121121
"nym-api/nym-api-requests",

common/client-core/src/client/base_client/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ use std::path::Path;
6868
use std::sync::Arc;
6969
use time::OffsetDateTime;
7070
use tokio_util::sync::{PollSendError, PollSender};
71-
use tracing::{debug, error, info};
7271
use url::Url;
7372

7473
#[cfg(target_arch = "wasm32")]

common/client-core/src/client/inbound_messages.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ impl Encoder<&[u8]> for AdressedInputMessageCodec {
214214

215215
fn encode(&mut self, item: &[u8], buf: &mut BytesMut) -> Result<(), Self::Error> {
216216
let mut codec = InputMessageCodec;
217-
let input_message = InputMessage::simple(item, self.0.clone());
217+
let input_message = InputMessage::simple(item, self.0);
218218
codec.encode(input_message, buf)?;
219219
Ok(())
220220
}

common/client-core/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![allow(deprecated)]
12
use std::future::Future;
23

34
#[cfg(all(

common/client-core/surb-storage/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright 2022 - Nym Technologies SA <contact@nymtech.net>
22
// SPDX-License-Identifier: Apache-2.0
33

4+
#![allow(deprecated)]
45
pub use backend::*;
56
pub use combined::CombinedReplyStorage;
67
pub use key_storage::SentReplyKeys;

common/cosmwasm-smart-contracts/coconut-dkg/src/types.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Copyright 2022-2023 - Nym Technologies SA <contact@nymtech.net>
22
// SPDX-License-Identifier: Apache-2.0
33

4+
#![allow(clippy::derivable_impls)]
5+
// MAX: surpressing warning for the moment, will be dealt with in a different PR (TODO)
46
use cosmwasm_schema::cw_serde;
57
use std::fmt::{Display, Formatter};
68
use std::str::FromStr;

common/credential-storage/src/ephemeral_storage.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ mod tests {
246246
let _exp_date_sigs = generate_expiration_date_signatures(
247247
sig_req.expiration_date.ecash_unix_timestamp(),
248248
&[signing_keys.secret_key()],
249-
&vec![signing_keys.verification_key()],
249+
&[signing_keys.verification_key()],
250250
&signing_keys.verification_key(),
251251
&[1],
252252
)?;
@@ -263,7 +263,7 @@ mod tests {
263263

264264
let wallet = issuance.aggregate_signature_shares(
265265
&signing_keys.verification_key(),
266-
&vec![partial_wallet],
266+
&[partial_wallet],
267267
sig_req,
268268
)?;
269269

common/crypto/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
// Copyright 2021 - Nym Technologies SA <contact@nymtech.net>
22
// SPDX-License-Identifier: Apache-2.0
33

4+
// MAX: temp ignore deprecated, can be dealt with in its own PR (TODO)
5+
#![allow(deprecated)]
6+
47
#[cfg(feature = "asymmetric")]
58
pub mod asymmetric;
69
pub mod bech32_address_validation;

common/gateway-requests/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Copyright 2020-2022 - Nym Technologies SA <contact@nymtech.net>
22
// SPDX-License-Identifier: Apache-2.0
3+
#![allow(deprecated)]
34

45
pub use nym_crypto::generic_array;
56
use nym_crypto::OutputSizeUser;

0 commit comments

Comments
 (0)