Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Update num-complex dependency from 0.2 to 0.4 #17

Merged
merged 1 commit into from
Mar 21, 2021

Conversation

newAM
Copy link
Contributor

@newAM newAM commented Mar 21, 2021

I ran into an error that looked like this:

error[E0277]: the trait bound `Complex<f32>: StreamSample` is not satisfied
   --> src/main.rs:15:46
    |
15  |     let mut stream: RxStream<Complex<f32>> = dev.rx_stream::<Complex<f32>>(&[0]).unwrap();
    |                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `StreamSample` is not implemented for `Complex<f32>`
    | 

Turns out it was just a version mismatch with complex-num.

Release notes here: https://github.com/rust-num/num-complex/blob/master/RELEASES.md

@kevinmehall kevinmehall merged commit 89cd069 into kevinmehall:master Mar 21, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants