Skip to content

Commit

Permalink
fix: cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Crayon-Shin-chan-1024 committed Oct 7, 2024
1 parent b322876 commit 3c2e180
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions psbt/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ use bp::dbc::opret::OpretProof;
use bp::dbc::tapret::TapretProof;
pub use psbt::*;
pub use rgb::*;
use rgbstd::XChain;
use rgbstd::containers::{AnchorSet, Batch, CloseMethodSet, Fascia, PubWitness, XPubWitness};
use rgbstd::XChain;

pub use self::rgb::{
PSBT_GLOBAL_RGB_TRANSITION, PSBT_IN_RGB_CONSUMED_BY, PSBT_OUT_RGB_VELOCITY_HINT,
PSBT_RGB_PREFIX, ProprietaryKeyRgb, RgbExt, RgbInExt, RgbOutExt, RgbPsbtError,
ProprietaryKeyRgb, RgbExt, RgbInExt, RgbOutExt, RgbPsbtError, PSBT_GLOBAL_RGB_TRANSITION,
PSBT_IN_RGB_CONSUMED_BY, PSBT_OUT_RGB_VELOCITY_HINT, PSBT_RGB_PREFIX,
};

#[derive(Clone, Eq, PartialEq, Debug, Display, Error)]
Expand Down
2 changes: 1 addition & 1 deletion psbt/src/rgb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
use std::collections::{BTreeMap, BTreeSet, HashMap};

use amplify::confinement::{Confined, SmallOrdMap, U24};
use amplify::{FromSliceError, confinement};
use amplify::{confinement, FromSliceError};
use bp::dbc::Method;
use bp::seals::txout::CloseMethod;
use commit_verify::mpc;
Expand Down
2 changes: 1 addition & 1 deletion src/descriptor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ use std::iter;
use std::str::FromStr;

use amplify::Wrapper;
use bp::dbc::Method;
use bp::dbc::tapret::TapretCommitment;
use bp::dbc::Method;
use bp::seals::txout::CloseMethod;
use bp::{LegacyPk, SigScript, Witness};
use bpstd::{
Expand Down
2 changes: 1 addition & 1 deletion src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ use rgbstd::persistence::{
};
use strict_types::encoding::{DeserializeError, Ident, SerializeError};

use crate::{TapTweakAlreadyAssigned, validation};
use crate::{validation, TapTweakAlreadyAssigned};

#[derive(Debug, Display, Error, From)]
#[display(inner)]
Expand Down
2 changes: 1 addition & 1 deletion src/indexers/any.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ use std::collections::HashMap;

use bp::Tx;
use bpstd::Network;
use rgbstd::XWitnessId;
use rgbstd::containers::Consignment;
use rgbstd::validation::{ResolveWitness, WitnessResolverError};
use rgbstd::XWitnessId;

use crate::vm::{WitnessOrd, XWitnessTx};
use crate::{Txid, XChain};
Expand Down
2 changes: 1 addition & 1 deletion src/pay.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ use std::marker::PhantomData;
use bp::dbc::tapret::TapretProof;
use bp::seals::txout::ExplicitSeal;
use bp::{Outpoint, Sats, ScriptPubkey, Vout};
use bpstd::{Address, psbt};
use bpstd::{psbt, Address};
use bpwallet::{Wallet, WalletDescr};
use psrgbt::{
Beneficiary as BpBeneficiary, Psbt, PsbtConstructor, PsbtMeta, RgbPsbt, TapretKeyError,
Expand Down
4 changes: 2 additions & 2 deletions src/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ use std::path::PathBuf;

use bpstd::XpubDerivable;
#[cfg(feature = "fs")]
use bpwallet::Wallet;
#[cfg(feature = "fs")]
use bpwallet::fs::FsTextStore;
#[cfg(feature = "fs")]
use bpwallet::Wallet;
#[cfg(not(target_arch = "wasm32"))]
use nonasync::persistence::PersistenceProvider;
use psrgbt::{Psbt, PsbtMeta};
Expand Down

0 comments on commit 3c2e180

Please sign in to comment.