Skip to content

Commit 384a5b7

Browse files
clippy
1 parent 68543b5 commit 384a5b7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dogstatsd/src/origin.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ pub fn find_metric_origin(metric: &Metric, tags: SortedTags) -> Option<Origin> {
115115
});
116116
}
117117

118-
return None;
118+
None
119119
}
120120

121121
fn is_datadog_metric(prefix: &str) -> bool {
@@ -138,11 +138,11 @@ fn is_azure_container_app(tags: &SortedTags, prefix: &str) -> bool {
138138
}
139139

140140
fn is_aws_lambda(tags: &SortedTags, prefix: &str) -> bool {
141-
tags.get(AWS_LAMBDA_TAG_KEY) != None && prefix != AWS_LAMBDA_PREFIX
141+
tags.get(AWS_LAMBDA_TAG_KEY).is_some() && prefix != AWS_LAMBDA_PREFIX
142142
}
143143

144144
fn is_aws_step_functions(tags: &SortedTags, prefix: &str) -> bool {
145-
tags.get(AWS_STEP_FUNCTIONS_TAG_KEY) != None && prefix != AWS_STEP_FUNCTIONS_PREFIX
145+
tags.get(AWS_STEP_FUNCTIONS_TAG_KEY).is_some() && prefix != AWS_STEP_FUNCTIONS_PREFIX
146146
}
147147

148148
#[cfg(test)]

0 commit comments

Comments
 (0)