Re: [PATCH 4/7] hash: make git_hash_discard() idempotent
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 7, 2026, 22:25 UTC
- Message-ID
- <xmqqqzlezbcz.fsf@gitster.g>
- In-Reply-To
- <ak1yazHtP_OazDaO@fruit.crustytoothpaste.net>
"brian m. carlson" <sandals@crustytoothpaste.net> writes:
> Our Rust code makes calling final a second time impossible because > finalization takes `self`, not `&mut self`, so the object is _moved_ > into the final method and you no longer have access to it after that.
That is a cute trick available to Rust but not many other languages, I guess ;-).