Browse Source

Unrelated clippy...

Trent Nelson 5 years ago
parent
commit
71f921aa3a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      program/src/native_mint.rs

+ 1 - 1
program/src/native_mint.rs

@@ -14,7 +14,7 @@ mod tests {
     #[test]
     fn test_decimals() {
         assert!(
-            lamports_to_sol(42) - crate::amount_to_ui_amount(42, DECIMALS).abs() < f64::EPSILON
+            (lamports_to_sol(42) - crate::amount_to_ui_amount(42, DECIMALS)).abs() < f64::EPSILON
         );
         assert_eq!(
             sol_to_lamports(42.),