Skip to content

Commit e78c372

Browse files
authored
refactor: remove new nightly lints for check-substrate workflow job (#1096)
* rm new lints * conditional ibc_primitives import * cargo fmt
1 parent 4b6f7ac commit e78c372

File tree

26 files changed

+3
-44
lines changed

26 files changed

+3
-44
lines changed

ibc-apps/ics20-transfer/src/module.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -321,9 +321,6 @@ pub fn on_timeout_packet_execute(
321321

322322
#[cfg(test)]
323323
mod test {
324-
use ibc_app_transfer_types::ack_success_b64;
325-
use ibc_app_transfer_types::error::TokenTransferError;
326-
327324
use super::*;
328325

329326
#[test]

ibc-apps/ics20-transfer/types/src/packet.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
//! Contains the `PacketData` type that defines the structure of token transfers' packet bytes
22
3-
use core::convert::TryFrom;
43
use core::str::FromStr;
54

65
use ibc_core::primitives::prelude::*;

ibc-apps/ics721-nft-transfer/src/module.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,6 @@ pub fn on_timeout_packet_execute(
321321
#[cfg(test)]
322322
mod test {
323323
use super::*;
324-
use crate::types::ack_success_b64;
325-
use crate::types::error::NftTransferError;
326324

327325
#[test]
328326
fn test_ack_ser() {

ibc-apps/ics721-nft-transfer/types/src/packet.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//! Contains the `PacketData` type that defines the structure of NFT transfers' packet bytes
22
3-
use core::convert::TryFrom;
4-
53
use base64::prelude::BASE64_STANDARD;
64
use base64::Engine;
75
use ibc_core::primitives::prelude::*;

ibc-clients/ics07-tendermint/src/client_state.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,6 @@ mod tests {
534534
use ibc_client_tendermint_types::{
535535
AllowUpdate, ClientState as ClientStateType, TrustThreshold,
536536
};
537-
use ibc_core_client::types::Height;
538537
use ibc_core_commitment_types::specs::ProofSpecs;
539538
use ibc_core_host::types::identifiers::ChainId;
540539

ibc-clients/ics07-tendermint/src/context.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
use alloc::string::ToString;
2-
31
use ibc_core_client::context::ClientExecutionContext;
42
use ibc_core_client::types::Height;
53
use ibc_core_handler_types::error::ContextError;

ibc-clients/ics07-tendermint/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
rust_2018_idioms
1414
)]
1515

16-
extern crate alloc;
17-
1816
#[cfg(any(test, feature = "std"))]
1917
extern crate std;
2018

ibc-clients/ics07-tendermint/types/src/client_state.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
//! Contains the implementation of the Tendermint `ClientState` domain type.
22
33
use core::cmp::max;
4-
use core::convert::{TryFrom, TryInto};
54
use core::str::FromStr;
65
use core::time::Duration;
76

@@ -422,8 +421,6 @@ pub(crate) mod serde_tests {
422421

423422
#[cfg(test)]
424423
mod tests {
425-
use core::time::Duration;
426-
427424
use ibc_core_commitment_types::proto::ics23::ProofSpec as Ics23ProofSpec;
428425

429426
use super::*;

ibc-clients/ics07-tendermint/types/src/header.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
//! Defines the domain type for tendermint headers
22
3-
use alloc::string::ToString;
43
use core::fmt::{Display, Error as FmtError, Formatter};
54
use core::str::FromStr;
65

ibc-clients/ics07-tendermint/types/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ use core::str::FromStr;
1717

1818
use ibc_core_host_types::identifiers::ClientType;
1919

20-
extern crate alloc;
21-
2220
#[cfg(any(test, feature = "std"))]
2321
extern crate std;
2422

0 commit comments

Comments
 (0)