Commit 8dd1b39
committed
clippy: avoid manual implementation of
```
error: manual implementation of `ok`
--> lightning/src/ln/channel.rs:8551:3
|
8551 | / match self.sign_channel_announcement(node_signer, announcement) {
8552 | | Ok(res) => Some(res),
8553 | | Err(_) => None,
8554 | | }
| |_________^ help: replace with: `self.sign_channel_announcement(node_signer, announcement).ok()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_ok_err
= note: `-D clippy::manual-ok-err` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::manual_ok_err)]`
```
Signed-off-by: Vincenzo Palazzo <[email protected]>ok
1 parent c4d23bc commit 8dd1b39
1 file changed
+1
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8548 | 8548 | | |
8549 | 8549 | | |
8550 | 8550 | | |
8551 | | - | |
8552 | | - | |
8553 | | - | |
8554 | | - | |
| 8551 | + | |
8555 | 8552 | | |
8556 | 8553 | | |
8557 | 8554 | | |
| |||
0 commit comments