Skip to content

Commit

Permalink
completely Fix non-test build
Browse files Browse the repository at this point in the history
  • Loading branch information
bddap committed Jul 12, 2019
1 parent 42f5061 commit 4700090
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/bin/cmd/wallet_args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,18 @@ use grin_wallet_config::WalletConfig;
use grin_wallet_controller::command;
use grin_wallet_controller::{Error, ErrorKind};
use grin_wallet_impls::{instantiate_wallet, WalletSeed};
use grin_wallet_impls::{PathToSlate, SlateGetter as _};
use grin_wallet_libwallet::Slate;
use grin_wallet_libwallet::{IssueInvoiceTxArgs, NodeClient, WalletInst};
use grin_wallet_util::grin_core as core;
use grin_wallet_util::grin_core::core::amount_to_hr_string;
use grin_wallet_util::grin_keychain as keychain;
use linefeed::terminal::Signal;
use linefeed::{Interface, ReadResult};
use rpassword;
use std::path::Path;
use std::sync::Arc;

// shut up test compilation warnings
#[cfg(not(test))]
use grin_wallet_impls::{PathToSlate, SlateGetter as _};
#[cfg(not(test))]
use grin_wallet_libwallet::Slate;
#[cfg(not(test))]
use grin_wallet_util::grin_core::core::amount_to_hr_string;

// define what to do on argument error
macro_rules! arg_parse {
( $r:expr ) => {
Expand Down Expand Up @@ -148,7 +143,6 @@ fn prompt_recovery_phrase() -> Result<ZeroingString, ParseError> {
Ok(phrase)
}

#[cfg(not(test))]
fn prompt_pay_invoice(slate: &Slate, method: &str, dest: &str) -> Result<bool, ParseError> {
let interface = Arc::new(Interface::new("pay")?);
let amount = amount_to_hr_string(slate.amount, false);
Expand Down

0 comments on commit 4700090

Please sign in to comment.