Skip to content

Commit aa49289

Browse files
committed
lib: clippyfy
1 parent 7cb3033 commit aa49289

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ pub mod command {
6868
{
6969
if let Ok((device, _)) = device.wait_confirm().await {
7070
let mut bb02 = BitBox02::from(device).with_network(network);
71-
if let Some(ref policy) = wallet.as_ref().map(|w| w.policy).flatten() {
71+
if let Some(policy) = wallet.as_ref().and_then(|w| w.policy) {
7272
bb02 = bb02.with_policy(policy)?;
7373
}
7474
hws.push(bb02.into());

0 commit comments

Comments
 (0)