Skip to content

Commit

Permalink
rust: Restrict float-cmp in ekore to dev-dep
Browse files Browse the repository at this point in the history
  • Loading branch information
felixhekhorn committed Aug 22, 2024
1 parent 7f1adeb commit aa15684
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/ekore/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,6 @@ rustdoc-args = ["--html-in-header", "doc-header.html"]

[dependencies]
num = "0.4.1"

[dev-dependencies]
float-cmp = "0.9.0"
1 change: 1 addition & 0 deletions crates/ekore/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ macro_rules! cmplx {
}

/// Shorthand complex number contructor.
#[cfg(test)]
#[macro_export]
macro_rules! assert_approx_eq_cmplx {
($size:ty, $ref:expr, $target:expr) => {
Expand Down

0 comments on commit aa15684

Please sign in to comment.