Skip to content

Commit 965f9c9

Browse files
Fix lint "clippy::redundant_closure"
1 parent cc77341 commit 965f9c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2427,7 +2427,7 @@ mod tests {
24272427
fn test_f16() {
24282428
let data: Vec<f16> = vec![-1.0f32, 0.0, 1.0, 2.5]
24292429
.into_iter()
2430-
.map(|x| f16::from_f32(x))
2430+
.map(f16::from_f32)
24312431
.collect();
24322432
let tensor = <Tensor<f16>>::new(&[2, 2]).with_values(&data).unwrap();
24332433
assert_eq!(&tensor[..], &data[..]);

0 commit comments

Comments
 (0)