rust-multiaddr icon indicating copy to clipboard operation
rust-multiaddr copied to clipboard

chore: Add lint exception to make CI pass again

Open umgefahren opened this issue 6 months ago • 0 comments

In Rust 1.80 cfg checking was introduced in stable. Since we use cfg(nightly) in one test to check the number of variants, we need to tell the compiler that this is okay.

It might seem like a dirty fix, but it's a widely used workaround:

It's also one of the suggested solutions by rust itself (and it's more efficient then using a build.rs file).

Originally posted by @umgefahren in https://github.com/multiformats/rust-multiaddr/issues/110#issuecomment-2265472969

umgefahren avatar Aug 02 '24 14:08 umgefahren