diff options
| author | 2025-04-29 17:14:45 +0200 | |
|---|---|---|
| committer | 2025-05-12 00:20:25 +0200 | |
| commit | 7d8dee4689278e174900509b8c4604651159d8ee (patch) | |
| tree | dd5cbe5311d6645725c812b15bee9eee3f1c55dd /scripts/generate_rust_target.rs | |
| parent | rust: static_assert: add optional message (diff) | |
| download | wireguard-linux-7d8dee4689278e174900509b8c4604651159d8ee.tar.xz wireguard-linux-7d8dee4689278e174900509b8c4604651159d8ee.zip | |
rust: uaccess: take advantage of the prelude and `Result`'s defaults
The `kernel` prelude brings `Result` and the error codes; and the prelude
itself is already available in the examples automatically.
In addition, `Result` already defaults to `T = ()`.
Thus simplify.
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Link: https://lore.kernel.org/r/20250429151445.438977-1-ojeda@kernel.org
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'scripts/generate_rust_target.rs')
0 files changed, 0 insertions, 0 deletions
