Skip to content

Commit 23014f3

Browse files
committed
fix clippy lint
1 parent 8ea1a2a commit 23014f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/blocks/rofication.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ async fn rofication_status(socket_path: &str) -> Result<(usize, usize)> {
9595

9696
// Response must be two integers: regular and critical, separated either by a comma or a \n
9797
let (num, crit) = response
98-
.split_once(|x| x == ',' || x == '\n')
98+
.split_once([',', '\n'])
9999
.error("Incorrect response")?;
100100
Ok((
101101
num.parse().error("Incorrect response")?,

0 commit comments

Comments
 (0)