Messages in this thread |  | | From | Miguel Ojeda <> | | Subject | Re: [PATCH] rust: list: Use "List::is_empty()" to perform checking when possible | | Date | Thu, 22 May 2025 11:47:53 +0200 |
| |
On Mon, 10 Mar 2025 15:38:52 +0800 I Hsin Cheng <richard120310@gmail.com> wrote: > > "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 <richard120310@gmail.com>
Applied to `rust-next` -- thanks!
[ Rebased dropping the cases that do not apply anymore. - Miguel ]
Cheers, Miguel
|  |