Skip to content

Commit

Permalink
[ISSUE #2205]🐛Fix stats_item.rs cargo clippy -- -D warnings error🍻 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mxsm authored Jan 11, 2025
1 parent 6174edd commit ebcce97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rocketmq-common/src/common/stats/stats_item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ impl StatsItem {
pub fn compute_stats_data(cs_list: Arc<Mutex<LinkedList<CallSnapshot>>>) -> StatsSnapshot {
let mut stats_snapshot = StatsSnapshot::new();
let cs_list = cs_list.lock();
if cs_list.len() > 0 {
if !cs_list.is_empty() {
let first = cs_list.front().unwrap();
let last = cs_list.back().unwrap();
let sum = last.get_value() - first.get_value();
Expand Down

0 comments on commit ebcce97

Please sign in to comment.