summaryrefslogtreecommitdiff
path: root/library/portable-simd
diff options
context:
space:
mode:
authorNikolai Vazquez <hello@nikolaivazquez.com>2023-01-21 22:00:25 -0500
committerNikolai Vazquez <hello@nikolaivazquez.com>2023-01-21 22:06:42 -0500
commit734a91358b2628dae64ff8f99a96d63707c40241 (patch)
treee9dde278f0adc6d97232be2c70e1e875285555fa /library/portable-simd
parent52372f9c71d8ade4cb815524f179119656f0aa2e (diff)
downloadrust-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.rs2
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() {