Damien Miller on Nostr: Still trying to learn #RustLang and had my first real fail with the borrow checker ...
Published at
2024-05-09 01:26:22Event JSON
{
"id": "42f579b4a781a6b88a35871dda114079c0762ce666cd7921ddf1e93e2e4cf762",
"pubkey": "af1cf15a284fa842d9a11dc24a8724904fd466f8d402f63a572a7931dcb479b4",
"created_at": 1715217982,
"kind": 1,
"tags": [
[
"t",
"rustlang"
],
[
"proxy",
"https://cybervillains.com/users/djm/statuses/112408525684489329",
"activitypub"
]
],
"content": "Still trying to learn #RustLang and had my first real fail with the borrow checker last night. How can you return a temporary reference to `self` from a method?\n\nhttps://gist.github.com/djmdjm/9c717fc294e68b4da563077d9469ec99\n\nany clues appreciated",
"sig": "42ec1a0645151c2714d9eacfdab7a12f701f8e57a4207dad6215a2120622ca824d0a1d7a54a2411eef8825f6c55953d107660b7175488a75728bd4b778c6021a"
}