aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/rustdoc_test_builder.rs
diff options
context:
space:
mode:
authorI Hsin Cheng <[email protected]>2025-03-10 07:38:52 +0000
committerMiguel Ojeda <[email protected]>2025-05-22 10:00:37 +0000
commit28669b2f37e9b7e98b62d0be2e10a5bf31c2b16f (patch)
tree2712d4f7f37b606850a81f0b9307ccfd7164226f /scripts/rustdoc_test_builder.rs
parentrust: module: place cleanup_module() in .exit.text section (diff)
downloadkernel-28669b2f37e9b7e98b62d0be2e10a5bf31c2b16f.tar.gz
kernel-28669b2f37e9b7e98b62d0be2e10a5bf31c2b16f.zip
rust: list: Use "List::is_empty()" to perform checking when possible
"List::is_empty()" provides a straight forward convention to check whether a given "List" is empty or not. There're numerous places in the current implementation still use "self.first.is_null()" to perform the equivalent check, replace them with "List::is_empty()". Signed-off-by: I Hsin Cheng <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Benno Lossin <[email protected]> [ Rebased dropping the cases that do not apply anymore. - Miguel ] Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'scripts/rustdoc_test_builder.rs')
0 files changed, 0 insertions, 0 deletions