Skip to content

Commit

Permalink
make a few fn's inline
Browse files Browse the repository at this point in the history
  • Loading branch information
dimxy committed Nov 29, 2023
1 parent f569e73 commit 3b45c1a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions mm2src/coins/utxo_signer/src/sign_params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ pub enum OutputDestination {
impl OutputDestination {
pub fn plain(address: String) -> OutputDestination { OutputDestination::Plain { address } }

#[inline]
pub fn change(derivation_path: DerivationPath, addr_format: AddressFormat) -> OutputDestination {
OutputDestination::Change {
derivation_path,
Expand All @@ -58,6 +59,7 @@ pub struct SendingOutputInfo {

impl SendingOutputInfo {
/// For now, returns [`TrezorOutputScriptType::PayToAddress`] since we don't support SLP tokens yet.
#[inline]
pub fn trezor_output_script_type(&self) -> TrezorOutputScriptType {
match self.destination_address {
OutputDestination::Change { ref addr_format, .. } if *addr_format == AddressFormat::Segwit => {
Expand Down
1 change: 1 addition & 0 deletions mm2src/coins_activation/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ mod tendermint_token_activation;
mod tendermint_with_assets_activation;
mod token;
mod utxo_activation;

#[cfg(not(target_arch = "wasm32"))]
pub use utxo_activation::for_tests;
#[cfg(not(target_arch = "wasm32"))] mod z_coin_activation;
Expand Down
1 change: 0 additions & 1 deletion mm2src/coins_activation/src/utxo_activation/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ pub mod for_tests {
use mm2_core::mm_ctx::MmArc;
use mm2_err_handle::prelude::{MmResult, NotEqual};
use rpc_task::RpcTaskStatus;
//use serde_json::{Value, self};

use crate::{init_standalone_coin, init_standalone_coin_status,
standalone_coin::{InitStandaloneCoinActivationOps, InitStandaloneCoinError,
Expand Down

0 comments on commit 3b45c1a

Please sign in to comment.