lint: remove some warning

This commit is contained in:
Quentin Legot
2023-04-12 15:32:46 +02:00
parent 752b70e448
commit 35736821c0
8 changed files with 14 additions and 35 deletions

View File

@ -120,7 +120,7 @@ impl<T: PartialEq> List<T> {
let mut current: *mut Node<T> = self.head;
let mut previous: *mut Node<T> = ptr::null_mut();
while !current.is_null() {
if (&*current).elem == item {
if (*current).elem == item {
if !previous.is_null() {
(*previous).next = (*current).next;
} else {