We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbd61ae commit 8c383deCopy full SHA for 8c383de
src/mapping/query/function/split.rs
@@ -23,6 +23,7 @@ impl SplitFn {
23
}
24
25
impl Function for SplitFn {
26
+ #[allow(clippy::collapsible_match)] // I expect this file to be going away shortly
27
fn execute(&self, ctx: &Event) -> Result<QueryValue> {
28
let string = {
29
let bytes = required_value!(ctx, self.path, Value::Bytes(v) => v);
@@ -71,10 +72,7 @@ impl Function for SplitFn {
71
72
},
73
Parameter {
74
keyword: "pattern",
- accepts: |v| {
75
- matches!(v, QueryValue::Value(Value::Bytes(_))
76
- | QueryValue::Regex(_))
77
- },
+ accepts: |v| matches!(v, QueryValue::Value(Value::Bytes(_)) | QueryValue::Regex(_)),
78
required: true,
79
80
0 commit comments