Hubert Figuière on Nostr: I found a case where cargo clippy is unhelpful. When the inner Arc<> is not Sync + ...
I found a case where cargo clippy is unhelpful. When the inner Arc<> is not Sync + Send. Because it suggest to use Rc<> instead of telling me which types do satisfy. Recursively.
#rustlang
Published at
2024-04-01 04:08:50Event JSON
{
"id": "e82cdee256db9272358b1c42ca349b1434e2f2df047d32c8635f74dd42e511d6",
"pubkey": "4d14215c1f947cd84cc6cfc06347c32c0c6b1f934a887d47c792197d2a454a63",
"created_at": 1711944530,
"kind": 1,
"tags": [
[
"t",
"rustlang"
],
[
"proxy",
"https://cosocial.ca/users/hub/statuses/112193996753384439",
"activitypub"
]
],
"content": "I found a case where cargo clippy is unhelpful. When the inner Arc\u003c\u003e is not Sync + Send. Because it suggest to use Rc\u003c\u003e instead of telling me which types do satisfy. Recursively.\n#rustlang",
"sig": "53ed6d6e671d7a15ef86f341a10b39fb43283e869d31a144b14bd6af72279c4fcbf8b80a16c0a0eef4b7a3e0a6dcf638707c7b72e4fb18de4f5fbed7593d0fc3"
}