Skip to content

Commit

Permalink
ndarray_from_numpy example to code not pointed out to clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
higumachan authored and Nil Goyette committed Feb 18, 2024
1 parent b53f418 commit 5981cce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/doc/ndarray_for_numpy_users/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@
//!
//! </td><td>
//!
//! `a.mapv(|x| f32::from(x))`
//! `a.mapv(f32::from)`
//!
//! </td><td>
//!
Expand All @@ -619,7 +619,7 @@
//!
//! </td><td>
//!
//! `a.mapv(|x| i32::from(x))`
//! `a.mapv(i32::from)`
//!
//! </td><td>
//!
Expand Down

0 comments on commit 5981cce

Please sign in to comment.