diff options
author | Alex Auvolat <alex@adnab.me> | 2022-03-14 12:00:23 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-03-14 12:27:49 +0100 |
commit | ba6b56ae68d5842d814769418d484093865261aa (patch) | |
tree | 2620aadaa46718680ba6e66946ca487839335f56 /src/garage/main.rs | |
parent | 0af314b295f70fdf107524b08063f4d36fb4eeb6 (diff) | |
download | garage-ba6b56ae68d5842d814769418d484093865261aa.tar.gz garage-ba6b56ae68d5842d814769418d484093865261aa.zip |
Fix some new clippy lintsfix-resync
Diffstat (limited to 'src/garage/main.rs')
-rw-r--r-- | src/garage/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/garage/main.rs b/src/garage/main.rs index 08ec912b..e898e680 100644 --- a/src/garage/main.rs +++ b/src/garage/main.rs @@ -115,7 +115,7 @@ async fn cli_command(opt: Opt) -> Result<(), Error> { } else { let node_id = garage_rpc::system::read_node_id(&config.as_ref().unwrap().metadata_dir) .err_context(READ_KEY_ERROR)?; - if let Some(a) = config.as_ref().map(|c| c.rpc_public_addr).flatten() { + if let Some(a) = config.as_ref().and_then(|c| c.rpc_public_addr) { (node_id, a) } else { let default_addr = SocketAddr::new( |