Skip to content

Commit 3c783e7

Browse files
committed
fix: Clippy warning
1 parent 4c23ff9 commit 3c783e7

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/repositories/monitor.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,7 @@ impl<
8181

8282
let has_parens = |sig: &str| {
8383
let sig = sig.trim();
84-
match (sig.find('('), sig.rfind(')')) {
85-
(Some(open), Some(close)) if open < close && close == sig.len() - 1 => true,
86-
_ => false,
87-
}
84+
matches!((sig.find('('), sig.rfind(')')), (Some(open), Some(close)) if open < close && close == sig.len() - 1)
8885
};
8986

9087
// Validate function signatures

0 commit comments

Comments
 (0)