summaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorMiguel Ojeda <ojeda@kernel.org>2025-04-29 17:14:45 +0200
committerMiguel Ojeda <ojeda@kernel.org>2025-05-12 00:20:25 +0200
commit7d8dee4689278e174900509b8c4604651159d8ee (patch)
treedd5cbe5311d6645725c812b15bee9eee3f1c55dd /scripts/generate_rust_analyzer.py
parent0fa5f8c877cae959de7cf6c3dc054e23e7ebcd75 (diff)
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_analyzer.py')
0 files changed, 0 insertions, 0 deletions