Skip to content

Commit

Permalink
fix: rust formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
nesquikm committed Sep 13, 2023
1 parent 9226df4 commit 51e9b4e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#![allow(unused_variables, dead_code)]

pub use nekoton::external::GqlConnection;
use nekoton::external::{ProtoConnection, JrpcConnection, LedgerConnection};
use nekoton::external::{JrpcConnection, LedgerConnection, ProtoConnection};
use std::panic::{RefUnwindSafe, UnwindSafe};
use std::sync::Arc;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pub mod connections;
pub mod gql_connection_api;
pub mod proto_connection_api;
pub mod jrpc_connection_api;
pub mod ledger_connection_api;
pub mod proto_connection_api;
pub mod storage;
pub mod storage_api;
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,28 @@ use crate::nekoton_wrapper::{
helpers::make_full_contract_state, parse_address, parse_hash, HandleError,
};
use async_trait::async_trait;
use duplicate::duplicate_item;
use flutter_rust_bridge::RustOpaque;
use nekoton::core::models::{Transaction, TransactionsBatchInfo, TransactionsBatchType};
use nekoton::external::{GqlConnection, ProtoConnection, JrpcConnection};
use nekoton::external::{GqlConnection, JrpcConnection, ProtoConnection};
use nekoton::transport::gql::LatestBlock;
use nekoton::transport::{gql::GqlTransport, proto::ProtoTransport, jrpc::JrpcTransport, Transport};
use nekoton::transport::{
gql::GqlTransport, jrpc::JrpcTransport, proto::ProtoTransport, Transport,
};
use nekoton_abi::TransactionId;
use nekoton_utils::SimpleClock;
use std::convert::TryFrom;
use std::panic::{RefUnwindSafe, UnwindSafe};
use std::sync::Arc;
use std::time::Duration;
use ton_block::Serializable;
use duplicate::duplicate_item;

use self::models::{BlockchainConfigDef, RawTransactionDef};

pub mod gql_transport_api;
pub mod jrpc_transport_api;
pub mod proto_transport_api;
pub mod models;
pub mod proto_transport_api;

/// This is a fucking hack that allows using nekoton::ProtoTransport, nekoton::JrpcTransport or nekoton::GqlTransport in dart classes.
/// This is a trait-wrapper above real ProtoTransport, JrpcTransport or GqlTransport with UnwindSafe + RefUnwindSafe.
Expand Down

0 comments on commit 51e9b4e

Please sign in to comment.