© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Brett Rowberry
Husband, dad, manager, functional programmer, and DIYer
The implementations of take_ownership and give_it_back are the same. Is that intentional?
take_ownership
give_it_back
Ben Greenberg
Senior Developer Advocate at Couchbase
Good catch! They are the same just to show explicitly what's happening to the value as it gets borrowed, returned, etc.