Guillaume Gomez on Nostr: Added a new rust clippy lint which warns when you use both inner and outer attributes ...
Published at
2024-02-29 11:57:15Event JSON
{
"id": "0b18c2f043e40387bab6b6dcee6444b382293ed798564a0d985667f5f20b040f",
"pubkey": "abae6ad0d21bff5a934064eeae5afcd12440fcb8f03100a2a1d1322d6158f216",
"created_at": 1709207835,
"kind": 1,
"tags": [
[
"t",
"rust"
],
[
"t",
"rustlang"
],
[
"proxy",
"https://toot.cat/users/imperio/statuses/112014644678316947",
"activitypub"
]
],
"content": "Added a new rust clippy lint which warns when you use both inner and outer attributes on an item:\n\n#[cfg(linux)]\npub fn foo() {\n #![cfg(windows)]\n}\n\n\nIn short: please don't. :)\n\nPR: https://github.com/rust-lang/rust-clippy/pull/12354\n\n#rust #rustlang",
"sig": "f495c6a800a4250ccf3b71136762582e37602d719d0075102147e9ef297bfe02a0fc870ab4b76750bd7b2280665a48784967aa329516db5c18e4a29dc4c8a7d5"
}