[pbs-devel] applied: [PATCH proxmox 3/5] proxmox-fixed-string: implement hash trait
Thomas Lamprecht
t.lamprecht at proxmox.com
Mon Dec 1 04:29:08 CET 2025
On Thu, 20 Nov 2025 15:50:11 +0100, Stefan Hanreich wrote:
> Some enums in pbs-api-types implement Hash, so FixedString needs to
> implement it too in order to be usable there.
>
> While it should have been fine to use the whole struct here because
> the buffer is zeroed on construction and the length is constant for
> equal strings - still only use the actual bytes from the buffer that
> contain the current string to avoid potential shenanigans.
>
> [...]
Applied, thanks!
[3/5] proxmox-fixed-string: implement hash trait
commit: 762753cf1513dc166478e43529b3141e83efc1a0
More information about the pbs-devel
mailing list