[pdm-devel] applied: [PATCH proxmox] sys: fs: derive `Copy` for CreateOptions
Thomas Lamprecht
t.lamprecht at proxmox.com
Wed Jan 29 18:10:28 CET 2025
Am 29.01.25 um 10:17 schrieb Lukas Wagner:
> Pretty much all functions accepting `CreateOptions` take a value and not
> a reference, so I've found myself using `.clone()` quite often in code
> I've written recently.
> The struct is only 24 bytes large (verified by a
> `std::mem::size_of::<CreateOptions>()`), so it should be absolutely fine
> to just derive Copy for it.
>
> Signed-off-by: Lukas Wagner <l.wagner at proxmox.com>
> ---
> proxmox-sys/src/fs/mod.rs | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>
applied, thanks!
More information about the pdm-devel
mailing list