Why Nostr? What is Njump?
2024-05-09 01:26:22

Damien Miller on Nostr: Still trying to learn #RustLang and had my first real fail with the borrow checker ...

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?

https://gist.github.com/djmdjm/9c717fc294e68b4da563077d9469ec99

any clues appreciated
Author Public Key
npub14uw0zk3gf75y9kdprhpy4peyjp8agehc6sp0vwjh9funrh950x6q2ys68l