Skip to content

Commit

Permalink
Address warning about unnecessary type cast
Browse files Browse the repository at this point in the history
  • Loading branch information
wash-amzn committed Apr 9, 2024
1 parent 6a0d9c3 commit 8d9a3a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/data/processes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ impl GetData for Processes {
Data::ProcessesRaw(ref value) => value,
_ => panic!("Invalid Data type in raw file"),
};
*TICKS_PER_SECOND.lock().unwrap() = raw_value.ticks_per_second as u64;
*TICKS_PER_SECOND.lock().unwrap() = raw_value.ticks_per_second;
let reader = BufReader::new(raw_value.data.as_bytes());
processes.time = raw_value.time;
for line in reader.lines() {
Expand Down

0 comments on commit 8d9a3a3

Please sign in to comment.