summaryrefslogtreecommitdiff
path: root/rust/bindings
diff options
context:
space:
mode:
authorValentin Obst <kernel@valentinobst.de>2024-01-31 23:23:24 +0300
committerMiguel Ojeda <ojeda@kernel.org>2024-02-18 23:22:27 +0300
commit69d5fbb0159673ea6737204f4d458a220e81a0c9 (patch)
tree7013565c84f229db90353952b93bcd4fd751c66f /rust/bindings
parentb6cda913bba42e1fdad82df41d906ff603319743 (diff)
downloadlinux-69d5fbb0159673ea6737204f4d458a220e81a0c9.tar.xz
rust: error: improve unsafe code in example
The `from_err_ptr` function is safe. There is no need for the call to it to be inside the unsafe block. Reword the SAFETY comment to provide a better justification of why the FFI call is safe. Signed-off-by: Valentin Obst <kernel@valentinobst.de> Reviewed-by: Martin Rodriguez Reboredo <yakoyoku@gmail.com> Reviewed-by: Alice Ryhl <aliceryhl@google.com> Reviewed-by: Trevor Gross <tmgross@umich.edu> Link: https://lore.kernel.org/r/20240131-doc-fixes-v3-v3-2-0c8af94ed7de@valentinobst.de Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'rust/bindings')
0 files changed, 0 insertions, 0 deletions