mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-21 03:21:08 +03:00
fix build warning about unreachable code (#519)
This commit is contained in:
parent
b37820bd40
commit
ea752d509b
1 changed files with 3 additions and 6 deletions
|
@ -191,7 +191,7 @@ fn main() {
|
||||||
.long("key_derivations")
|
.long("key_derivations")
|
||||||
.default_value("1000")
|
.default_value("1000")
|
||||||
.takes_value(true))
|
.takes_value(true))
|
||||||
|
|
||||||
.subcommand(SubCommand::with_name("listen")
|
.subcommand(SubCommand::with_name("listen")
|
||||||
.about("Runs the wallet in listening mode waiting for transactions.")
|
.about("Runs the wallet in listening mode waiting for transactions.")
|
||||||
.arg(Arg::with_name("port")
|
.arg(Arg::with_name("port")
|
||||||
|
@ -199,7 +199,7 @@ fn main() {
|
||||||
.long("port")
|
.long("port")
|
||||||
.help("Port on which to run the wallet listener")
|
.help("Port on which to run the wallet listener")
|
||||||
.takes_value(true)))
|
.takes_value(true)))
|
||||||
|
|
||||||
.subcommand(SubCommand::with_name("receive")
|
.subcommand(SubCommand::with_name("receive")
|
||||||
.about("Processes a JSON transaction file.")
|
.about("Processes a JSON transaction file.")
|
||||||
.arg(Arg::with_name("input")
|
.arg(Arg::with_name("input")
|
||||||
|
@ -207,7 +207,7 @@ fn main() {
|
||||||
.short("i")
|
.short("i")
|
||||||
.long("input")
|
.long("input")
|
||||||
.takes_value(true)))
|
.takes_value(true)))
|
||||||
|
|
||||||
.subcommand(SubCommand::with_name("send")
|
.subcommand(SubCommand::with_name("send")
|
||||||
.about("Builds a transaction to send someone some coins. By default, \
|
.about("Builds a transaction to send someone some coins. By default, \
|
||||||
the transaction will just be printed to stdout. If a destination is \
|
the transaction will just be printed to stdout. If a destination is \
|
||||||
|
@ -510,9 +510,6 @@ fn wallet_command(wallet_args: &ArgMatches, global_config: GlobalConfig) {
|
||||||
("restore", Some(_)) => {
|
("restore", Some(_)) => {
|
||||||
let _=wallet::restore(&wallet_config, &keychain, key_derivations);
|
let _=wallet::restore(&wallet_config, &keychain, key_derivations);
|
||||||
}
|
}
|
||||||
("receive", Some(_)) => {
|
|
||||||
panic!("Command 'receive' is depreciated, use 'listen' instead");
|
|
||||||
}
|
|
||||||
_ => panic!("Unknown wallet command, use 'grin help wallet' for details"),
|
_ => panic!("Unknown wallet command, use 'grin help wallet' for details"),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue