Skip to content

Commit

Permalink
Merge pull request #65 from mgeisler/forbid-unsafe-code
Browse files Browse the repository at this point in the history
Forbid the use of unsafe code
  • Loading branch information
mgeisler authored Apr 25, 2021
2 parents d391f9e + 89ba212 commit 343eff9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@
//! matrix is a Monge matrix.
#![doc(html_root_url = "https://docs.rs/smawk/0.3.1")]
// The s! macro from ndarray uses unsafe internally, so we can only
// forbid unsafe code when building with the default features.
#![cfg_attr(not(feature = "ndarray"), forbid(unsafe_code))]

#[cfg(feature = "ndarray")]
pub mod brute_force;
Expand Down

0 comments on commit 343eff9

Please sign in to comment.