packed_struct.rs icon indicating copy to clipboard operation
packed_struct.rs copied to clipboard

Fix feature=alloc build

Open m5p3nc3r opened this issue 3 years ago • 4 comments

m5p3nc3r avatar Apr 06 '22 13:04 m5p3nc3r

Hi Guys

I was trying to use this crate with a rp2040 project I am working on. I noticed that it was failing with "--no-default-features --features=alloc". I believe this PR fixes the problem.

Should I also add configuration to the test running to build the 'alloc' feature version of the crate?

m5p3nc3r avatar Apr 06 '22 13:04 m5p3nc3r

Thanks for enabling the actions to be run. Do you know what version of the rust compiler is used by the ubuntu-latest? The tests all pass when building locally using rustc 1.59.0.

m5p3nc3r avatar Apr 06 '22 15:04 m5p3nc3r

Interestingly, for me, master branch is failing in the same way on my local machine

m5p3nc3r avatar Apr 06 '22 15:04 m5p3nc3r

I have updated the clippy configuration to ignore the new linting falures (apart from the double quoted single char which I have fixed). Hope this works now.

m5p3nc3r avatar Apr 06 '22 16:04 m5p3nc3r