Skip to content

Commit

Permalink
fix clippy tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jimexist committed Sep 30, 2024
1 parent 7642673 commit a9f332e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/rs/src/protocol/compact.rs
Original file line number Diff line number Diff line change
Expand Up @@ -681,8 +681,6 @@ fn u8_to_type(b: u8) -> crate::Result<TType> {
#[cfg(test)]
mod tests {

use std::i32;

use crate::protocol::{
TFieldIdentifier, TInputProtocol, TListIdentifier, TMapIdentifier, TMessageIdentifier,
TMessageType, TOutputProtocol, TSetIdentifier, TStructIdentifier, TType,
Expand Down Expand Up @@ -2818,7 +2816,7 @@ mod tests {
copy_write_buffer_to_read_buffer!(o_prot);

let read_double = i_prot.read_double().unwrap();
assert!(read_double - double < std::f64::EPSILON);
assert!((read_double - double).abs() < f64::EPSILON);
}

#[test]
Expand Down

0 comments on commit a9f332e

Please sign in to comment.