From b9b7dc5f6c17c18de1e97598232fd97be44971d7 Mon Sep 17 00:00:00 2001 From: Fabian Boehm Date: Sun, 26 May 2024 10:50:45 +0200 Subject: [PATCH] fmt --- src/tinyexpr.rs | 4 +--- src/wutil/hex_float.rs | 5 ++++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/tinyexpr.rs b/src/tinyexpr.rs index 53a5d70ec..63781186c 100644 --- a/src/tinyexpr.rs +++ b/src/tinyexpr.rs @@ -25,9 +25,7 @@ // This version has been altered and ported to C++, then to Rust, for inclusion in fish. use std::{ - f64::{ - consts::{E, PI, TAU}, - }, + f64::consts::{E, PI, TAU}, fmt::Debug, ops::{BitAnd, BitOr, BitXor}, }; diff --git a/src/wutil/hex_float.rs b/src/wutil/hex_float.rs index 8415228c4..703c0cf91 100644 --- a/src/wutil/hex_float.rs +++ b/src/wutil/hex_float.rs @@ -363,7 +363,10 @@ mod tests { // The mantissa and exponent can cancel each other out! assert_eq!(parse(&format!("0x1{:0<512}p-2000", "")), 2.0f64.powi(48)); - assert_eq!(parse(&format!("-0x1{:0<512}p-2000", "")), -(2.0f64.powi(48))); + assert_eq!( + parse(&format!("-0x1{:0<512}p-2000", "")), + -(2.0f64.powi(48)) + ); } #[test]