Skip to content
This repository has been archived by the owner on Jul 6, 2019. It is now read-only.

cmp::Eq is not visible after adding basic test harness #51

Closed
farcaller opened this issue May 31, 2014 · 1 comment · Fixed by #55
Closed

cmp::Eq is not visible after adding basic test harness #51

farcaller opened this issue May 31, 2014 · 1 comment · Fixed by #55
Assignees

Comments

@farcaller
Copy link
Member

After merging in #49, tests are now broken on travis, but still work with my local rustc d0b0f16:

/home/travis/build/hackndev/zinc/src/drivers/dht22.rs:114:10: 114:36 error: binary operation `!=` cannot be applied to type `hal::gpio::Level`
/home/travis/build/hackndev/zinc/src/drivers/dht22.rs:114       if self.gpio.level() != level {
                                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/travis/build/hackndev/zinc/src/hal/gpio.rs:32:12: 32:14 error: failed to find an implementation of trait core::cmp::PartialEq for hal::gpio::Level
/home/travis/build/hackndev/zinc/src/hal/gpio.rs:32 #[deriving(Eq)]
                                                               ^~
note: in expansion of #[deriving]
/home/travis/build/hackndev/zinc/src/hal/gpio.rs:32:1: 33:4 note: expansion site
@bharrisau
Copy link
Contributor

Probably due to rust-lang/rust#14534 in the new nightly.

bharrisau added a commit to bharrisau/zinc that referenced this issue Jun 1, 2014
farcaller added a commit that referenced this issue Jun 1, 2014
Change deriving Eq target of gpio.rs. Fixes #51.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants