Added partialeq trait to List struct

This commit is contained in:
François Autin 2023-03-08 15:48:03 +01:00
parent a11ca01368
commit 7520fd4458
No known key found for this signature in database
GPG Key ID: 343F5D382E1DD77C

View File

@ -1,4 +1,5 @@
#[derive(PartialEq)]
pub struct List<T: PartialEq> { pub struct List<T: PartialEq> {
head: Link<T>, head: Link<T>,
} }