diff options
author | Nikolai Vazquez <hello@nikolaivazquez.com> | 2023-01-21 22:00:25 -0500 |
---|---|---|
committer | Nikolai Vazquez <hello@nikolaivazquez.com> | 2023-01-21 22:06:42 -0500 |
commit | 734a91358b2628dae64ff8f99a96d63707c40241 (patch) | |
tree | e9dde278f0adc6d97232be2c70e1e875285555fa /library/portable-simd | |
parent | 52372f9c71d8ade4cb815524f179119656f0aa2e (diff) | |
download | rust-734a91358b2628dae64ff8f99a96d63707c40241.tar.gz |
Remove unnecessary `&format!`
These were likely from before the `PartialEq<str>` impl for `&String`.
Diffstat (limited to 'library/portable-simd')
-rw-r--r-- | library/portable-simd/crates/core_simd/examples/spectral_norm.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/portable-simd/crates/core_simd/examples/spectral_norm.rs b/library/portable-simd/crates/core_simd/examples/spectral_norm.rs index 012182e090b..d576bd0ccee 100644 --- a/library/portable-simd/crates/core_simd/examples/spectral_norm.rs +++ b/library/portable-simd/crates/core_simd/examples/spectral_norm.rs @@ -69,7 +69,7 @@ fn dot(x: &[f64], y: &[f64]) -> f64 { #[cfg(test)] #[test] fn test() { - assert_eq!(&format!("{:.9}", spectral_norm(100)), "1.274219991"); + assert_eq!(format!("{:.9}", spectral_norm(100)), "1.274219991"); } fn main() { |