Skip to content

Commit 0ee5ca9

Browse files
authored
Remove empty format precision specifier (#2785)
A format precision specifier consisting of a dot and no number actually does nothing and has no specified meaning. Currently this is silently ignored, but it may turn into a warning or error. See rust-lang/rust#136638
1 parent 3ad5343 commit 0ee5ca9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/burn-tensor/src/tensor/report.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ pub fn check_closeness<B: Backend, const D: usize>(output: &Tensor<B, D>, expect
7676
println!("===============================");
7777

7878
for epsilon in [1e-1, 1e-2, 1e-3, 1e-4, 1e-5, 1e-6, 1e-7, 1e-8].iter() {
79-
println!("{} {:.e}", "Epsilon:".bold(), epsilon);
79+
println!("{} {:e}", "Epsilon:".bold(), epsilon);
8080

8181
let close = output
8282
.clone()

0 commit comments

Comments
 (0)