]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rust: file: improve safety comments
authorPekka Ristola <pekkarr@protonmail.com>
Tue, 27 May 2025 20:48:59 +0000 (20:48 +0000)
committerChristian Brauner <brauner@kernel.org>
Fri, 30 May 2025 05:12:05 +0000 (07:12 +0200)
commit946026ba4293a14970b4b0b72f5f0cbb698ad77e
tree1bd5b64055a4dbda350ab0ee0bad481a31069a19
parent15ecd83dc06277385ad71dc7ea26911d9a79acaf
rust: file: improve safety comments

Some of the safety comments in `LocalFile`'s methods incorrectly refer to
the `File` type instead of `LocalFile`, so fix them to use the correct
type.

Also add missing Markdown code spans around lifetimes in the safety
comments, i.e. change 'a to `'a`.

Link: https://github.com/Rust-for-Linux/linux/issues/1165
Signed-off-by: Pekka Ristola <pekkarr@protonmail.com>
Link: https://lore.kernel.org/20250527204636.12573-2-pekkarr@protonmail.com
Reviewed-by: Benno Lossin <lossin@kernel.org>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
rust/kernel/fs/file.rs