summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGary Guo <gary@garyguo.net>2026-05-12 15:09:46 +0300
committerGary Guo <gary@garyguo.net>2026-05-14 22:17:28 +0300
commit1e648c22abfe448d284314a0d05622a242ba4eac (patch)
treefae949e372c9b203e487060c0b80d6aea61efb81 /include
parent430654211d566f86e8ee533ff1b01a42be6b602c (diff)
downloadlinux-1e648c22abfe448d284314a0d05622a242ba4eac.tar.xz
rust: pin-init: internal: pin_data: use closure for `handle_field`
`handle_field` is currently a function, which precludes it from referencing things in the scope of the parent function. Given that it's only called once, inline its contents to the closure that invokes it instead, so it can directly reference `struct_name` without having to pass in as argument. Link: https://patch.msgid.link/20260512-pin-init-sync-v1-1-81963130dfbd@garyguo.net Signed-off-by: Gary Guo <gary@garyguo.net>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions