mirror of
https://github.com/mimblewimble/grin.git
synced 2025-05-07 17:51:14 +03:00
Use Option::unwrap_or instead of is_some followed by unwrap in start_server_tui (#2432)
This commit is contained in:
parent
ef5d83817e
commit
b22e5752be
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ fn start_server(config: servers::ServerConfig) {
|
|||
fn start_server_tui(config: servers::ServerConfig) {
|
||||
// Run the UI controller.. here for now for simplicity to access
|
||||
// everything it might need
|
||||
if config.run_tui.is_some() && config.run_tui.unwrap() {
|
||||
if config.run_tui.unwrap_or(false) {
|
||||
warn!("Starting GRIN in UI mode...");
|
||||
servers::Server::start(config, |serv: Arc<servers::Server>| {
|
||||
let running = Arc::new(AtomicBool::new(true));
|
||||
|
|
Loading…
Add table
Reference in a new issue