candid icon indicating copy to clipboard operation
candid copied to clipboard

CandidType derived on Enums gives an unused variable warning

Open borovan opened this issue 2 years ago • 1 comments

I'm getting Rust warnings from the CandidType derive macro, only on enums and records with no fields.

Not a huge issue but there's a lot of yellow squiggles all over my VSCode.

image

Thanks!

borovan avatar Sep 27 '23 15:09 borovan

What's this enum attributes? It doesn't seem to come from candid?

chenyan-dfinity avatar Sep 27 '23 16:09 chenyan-dfinity