image-rs/deflate-rs

deepin linux build error

zhenruyan opened this issue · 8 comments

error: macro undefined: 'assert_ne!'
--> src/writer.rs:19:5
|
19 | assert_ne!(flush_mode, Flush::None);
| ^^^^^^^^^
|
= help: did you mean assert_eq!?

error: aborting due to previous error

error: Could not compile deflate.

thinks

I am a beginner of rust

What version of rust are you using? assert_ne is a pretty new addition.

I'm also having this issue on Windows using MSVC. I've tried the stable, beta, and nightly channels and the error persists on all of them.

That's strange seeing as it was added in rust 1.13. Though, if it's just that assert causing issues I can change it to use a normal assert in the next version instead..

linux kernel 4.9.0 rustc 1.12.0

Right, you will need to update to at least 1.13.0 as the macro that is failing was added in that version.

I will remove the usage of assert_ne! ianyhow n the next update of this crate as it's not really important.

ok thinks

I've removed the usage of assert_ne in the latest update. Do you still have this issue?

Closing this as the code no longer uses assert_ne!.