Skip to content

Commit 699f67a

Browse files
pmarksbrainstorm
andauthored
keep compat w/ older rust (#220)
Co-authored-by: Roman Valls Guimera <brainstorm@users.noreply.github.com>
1 parent aae589f commit 699f67a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/bcf/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,7 @@ mod tests {
748748

749749
assert_eq!(record.rid().expect("Error reading rid."), 0);
750750
assert_eq!(record.pos(), 10021 + i as i64);
751-
assert!((record.qual() - 0f32).abs() < f32::EPSILON);
751+
assert!((record.qual() - 0f32).abs() < std::f32::EPSILON);
752752
assert!(
753753
(record
754754
.info(b"MQ0F")
@@ -757,7 +757,7 @@ mod tests {
757757
.expect("Missing tag")[0]
758758
- 1.0)
759759
.abs()
760-
< f32::EPSILON
760+
< std::f32::EPSILON
761761
);
762762
if i == 59 {
763763
assert!(
@@ -768,7 +768,7 @@ mod tests {
768768
.expect("Missing tag")[0]
769769
- -0.379885)
770770
.abs()
771-
< f32::EPSILON
771+
< std::f32::EPSILON
772772
);
773773
}
774774
// the artificial "not observed" allele is present in each record.

0 commit comments

Comments
 (0)