Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
leighmcculloch committed Oct 3, 2024
1 parent e3b4177 commit b40a940
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions cmd/crates/stellar-ledger/tests/test/emulator_tests.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use crate::xdr::{self, Operation, OperationBody, Uint256};
use crate::xdr::{Hash, Transaction};
use ledger_transport::Exchange;
use once_cell::sync::Lazy;
use serde::Deserialize;
use crate::xdr::{self, Operation, OperationBody, Uint256};
use crate::xdr::{Hash, Transaction};
use std::ops::Range;
use std::sync::Mutex;
use std::vec;
Expand Down
2 changes: 1 addition & 1 deletion cmd/soroban-cli/src/commands/contract/extend.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
use std::{fmt::Debug, path::Path, str::FromStr};

use clap::{command, Parser};
use crate::xdr::{
Error as XdrError, ExtendFootprintTtlOp, ExtensionPoint, LedgerEntry, LedgerEntryChange,
LedgerEntryData, LedgerFootprint, Limits, Memo, Operation, OperationBody, Preconditions,
SequenceNumber, SorobanResources, SorobanTransactionData, Transaction, TransactionExt,
TransactionMeta, TransactionMetaV3, TtlEntry, WriteXdr,
};
use clap::{command, Parser};

use crate::{
commands::{
Expand Down
4 changes: 2 additions & 2 deletions cmd/soroban-cli/src/commands/contract/id/wasm.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use clap::{arg, command, Parser};
use sha2::{Digest, Sha256};
use crate::xdr::{
self, AccountId, ContractIdPreimage, ContractIdPreimageFromAddress, Hash, HashIdPreimage,
HashIdPreimageContractId, Limits, PublicKey, ScAddress, Uint256, WriteXdr,
};
use clap::{arg, command, Parser};
use sha2::{Digest, Sha256};

use crate::config;

Expand Down
2 changes: 1 addition & 1 deletion cmd/soroban-cli/src/commands/contract/info/shared.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::path::PathBuf;

use clap::arg;
use crate::xdr;
use clap::arg;
use soroban_rpc::Client;

use crate::commands::contract::info::shared::Error::InvalidWasmHash;
Expand Down
2 changes: 1 addition & 1 deletion cmd/soroban-cli/src/commands/contract/inspect.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use clap::{command, Parser};
use crate::xdr;
use clap::{command, Parser};
use soroban_spec_tools::contract;
use std::{fmt::Debug, path::PathBuf};
use tracing::debug;
Expand Down
2 changes: 1 addition & 1 deletion cmd/soroban-cli/src/commands/contract/install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ use std::array::TryFromSliceError;
use std::fmt::Debug;
use std::num::ParseIntError;

use clap::{command, Parser};
use crate::xdr::{
self, ContractCodeEntryExt, Error as XdrError, Hash, HostFunction, InvokeHostFunctionOp,
LedgerEntryData, Limits, OperationBody, ReadXdr, ScMetaEntry, ScMetaV0, Transaction,
TransactionResult, TransactionResultResult, VecM, WriteXdr,
};
use clap::{command, Parser};

use super::restore;
use crate::commands::txn_result::{TxnEnvelopeResult, TxnResult};
Expand Down
2 changes: 1 addition & 1 deletion cmd/soroban-cli/src/commands/contract/restore.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
use std::{fmt::Debug, path::Path, str::FromStr};

use clap::{command, Parser};
use crate::xdr::{
Error as XdrError, ExtensionPoint, LedgerEntry, LedgerEntryChange, LedgerEntryData,
LedgerFootprint, Limits, Memo, Operation, OperationBody, OperationMeta, Preconditions,
RestoreFootprintOp, SequenceNumber, SorobanResources, SorobanTransactionData, Transaction,
TransactionExt, TransactionMeta, TransactionMetaV3, TtlEntry, WriteXdr,
};
use clap::{command, Parser};
use stellar_strkey::DecodeError;

use crate::{
Expand Down
8 changes: 4 additions & 4 deletions cmd/soroban-cli/src/key.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
use crate::xdr::{
self, LedgerKey, LedgerKeyContractCode, LedgerKeyContractData, Limits, ReadXdr, ScAddress,
ScVal,
};
use crate::{
commands::contract::Durability,
config::{locator, network::Network},
wasm,
};
use clap::arg;
use crate::xdr::{
self, LedgerKey, LedgerKeyContractCode, LedgerKeyContractData, Limits, ReadXdr, ScAddress,
ScVal,
};
use std::path::PathBuf;

#[derive(thiserror::Error, Debug)]
Expand Down
2 changes: 1 addition & 1 deletion cmd/soroban-cli/src/wasm.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use crate::config::locator;
use crate::config::network::Network;
use crate::xdr::{self, Hash, LedgerKey, LedgerKeyContractCode};
use clap::arg;
use sha2::{Digest, Sha256};
use crate::xdr::{self, Hash, LedgerKey, LedgerKeyContractCode};
use soroban_rpc::Client;
use soroban_spec_tools::contract::{self, Spec};
use std::{
Expand Down

0 comments on commit b40a940

Please sign in to comment.