Skip to content

Commit 7bd92ad

Browse files
committed
unwanted cast removed
1 parent a5f17b4 commit 7bd92ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opentelemetry-sdk/src/metrics/internal/aggregate.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pub(crate) const STREAM_CARDINALITY_LIMIT: usize = 2000;
1616

1717
/// Checks whether aggregator has hit cardinality limit for metric streams
1818
pub(crate) fn is_under_cardinality_limit(size: usize) -> bool {
19-
size < STREAM_CARDINALITY_LIMIT as usize
19+
size < STREAM_CARDINALITY_LIMIT
2020
}
2121

2222
/// Receives measurements to be aggregated.

0 commit comments

Comments
 (0)