Skip to content

Commit cd57696

Browse files
authored
lint error
1 parent 707a34e commit cd57696

File tree

1 file changed

+1
-2
lines changed
  • opentelemetry-sdk/src/metrics

1 file changed

+1
-2
lines changed

opentelemetry-sdk/src/metrics/view.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ pub fn new_view(criteria: Instrument, mask: Stream) -> MetricResult<Box<dyn View
103103
return Ok(Box::new(empty_view));
104104
}
105105
let contains_wildcard = criteria.name.contains(['*', '?']);
106-
let err_msg_criteria = criteria.clone();
107106

108107
let match_fn: Box<dyn Fn(&Instrument) -> bool + Send + Sync> = if contains_wildcard {
109108
if mask.name != "" {
@@ -130,7 +129,7 @@ pub fn new_view(criteria: Instrument, mask: Stream) -> MetricResult<Box<dyn View
130129
if let Some(ma) = &mask.aggregation {
131130
match ma.validate() {
132131
Ok(_) => agg = Some(ma.clone()),
133-
Err(err) => {
132+
Err(_) => {
134133
// TODO - The error is getting lost here. Need to return or log.
135134
return Ok(Box::new(empty_view));
136135
}

0 commit comments

Comments
 (0)