diff options
author | 2023-01-30 03:44:03 -0300 | |
---|---|---|
committer | 2023-02-01 13:24:36 +0100 | |
commit | 7118594466b8ed7285adb1dc177f2c84bfa33265 (patch) | |
tree | ad1ec0e811e06a464b34be66a6873b91627d9486 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
parent | rust: types: implement `ForeignOwnable` for `Box<T>` (diff) | |
download | wireguard-linux-7118594466b8ed7285adb1dc177f2c84bfa33265.tar.xz wireguard-linux-7118594466b8ed7285adb1dc177f2c84bfa33265.zip |
rust: types: implement `ForeignOwnable` for the unit type
This allows us to use the unit type `()` when we have no object whose
ownership must be managed but one implementing the `ForeignOwnable`
trait is needed.
Signed-off-by: Wedson Almeida Filho <wedsonaf@gmail.com>
Reviewed-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
Reviewed-by: Gary Guo <gary@garyguo.net>
Reviewed-by: Andreas Hindborg <a.hindborg@samsung.com>
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions