Lint: remove some warnings
This commit is contained in:
@ -1,7 +1,14 @@
|
||||
//! Data structure and definition of a genericsingle-linked LIFO list.
|
||||
//! Data structure and definition of a generic single-linked LIFO list.
|
||||
|
||||
use std::ptr;
|
||||
|
||||
/// Definition of the generic single-linked FIFO list
|
||||
///
|
||||
/// Each elements points to a single item of the list and the following one
|
||||
///
|
||||
/// These methods wrap unsafe instructions because it doesn't respect borrow rules per example
|
||||
/// but everything has been tested with miri to assure there's no Undefined Behaviour (use-after-free, double free, etc.)
|
||||
/// or memory leak
|
||||
#[derive(PartialEq)]
|
||||
pub struct List<T: PartialEq> {
|
||||
head: Link<T>,
|
||||
|
Reference in New Issue
Block a user