Caleb James DeLisle on Nostr: Rust gotcha. Don't create parametric functions where callbacks return "Future" unless ...
Rust gotcha.
Don't create parametric functions where callbacks return "Future" unless you're ok with them returning a Future of literally anything.
This should have been Future<Output=()>
Published at
2025-01-01 17:43:20Event JSON
{
"id": "3f0011dcf571bbecfb983119183e167461b6faf4d06c399deefe9e4ec93a86ce",
"pubkey": "dde9dd6efbaf3c747c06bfd60f732666acd686e4c2eff471937f0c7c5fca5e0e",
"created_at": 1735753400,
"kind": 1,
"tags": [
[
"imeta",
"url https://pkteerium.xyz/media/43dfc8397821fb107bdac49dd73930b02bff32e49846126d10b33b6b4cb6aac3.png",
"m image/png"
],
[
"proxy",
"https://pkteerium.xyz/objects/96bb6608-421e-4968-a693-e27cb556a554",
"activitypub"
]
],
"content": "Rust gotcha.\n\nDon't create parametric functions where callbacks return \"Future\" unless you're ok with them returning a Future of literally anything.\n\nThis should have been Future\u003cOutput=()\u003e\n\nhttps://pkteerium.xyz/media/43dfc8397821fb107bdac49dd73930b02bff32e49846126d10b33b6b4cb6aac3.png",
"sig": "4eef356f1aba5f1c93cccbcc6ba93046e3e9337a5289234e4edfdc2c69025f0434b69487bc6870672e5b88b6cd1149d21f73ea5a8ab89c476564ccb8f68214c2"
}