Skip to content

Commit 5981cce

Browse files
higumachanNil Goyette
authored and
Nil Goyette
committed
ndarray_from_numpy example to code not pointed out to clippy
1 parent b53f418 commit 5981cce

File tree

1 file changed

+2
-2
lines changed
  • src/doc/ndarray_for_numpy_users

1 file changed

+2
-2
lines changed

src/doc/ndarray_for_numpy_users/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@
605605
//!
606606
//! </td><td>
607607
//!
608-
//! `a.mapv(|x| f32::from(x))`
608+
//! `a.mapv(f32::from)`
609609
//!
610610
//! </td><td>
611611
//!
@@ -619,7 +619,7 @@
619619
//!
620620
//! </td><td>
621621
//!
622-
//! `a.mapv(|x| i32::from(x))`
622+
//! `a.mapv(i32::from)`
623623
//!
624624
//! </td><td>
625625
//!

0 commit comments

Comments
 (0)