lkml.org 
[lkml]   [2026]   [May]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] rust: io: use newtype for PhysAddr
Date
On Sun, 03 May 2026 20:45:50 +0200
Danilo Krummrich <dakr@kernel.org> wrote:

> On Sun May 3, 2026 at 8:28 PM CEST, Onur Özkan wrote:
> > Copy and Clone seem never used, please drop them (also see [1]).
>
> This is a transparent wrapper of a primitive, so passing by value is a very
> natural and idiomatic thing to do, so we should keep them.

Right, my bad. I didn't pay attention to the type itself.

>
> What you are referring to is more meant for larger types where a copy might
> actually hurt performance.

\
 
 \ /
  Last update: 2026-05-03 20:52    [W:0.052 / U:31.841 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog