]> git.proxmox.com Git - rustc.git/blobdiff - compiler/rustc_data_structures/src/tiny_list.rs
New upstream version 1.57.0+dfsg1
[rustc.git] / compiler / rustc_data_structures / src / tiny_list.rs
index 9b07f86846eb32089b26b5834dcdb72ab0b29e9e..9e605ea2d982c950b22d044a07d768718bc8b7b3 100644 (file)
@@ -48,7 +48,7 @@ impl<T: PartialEq> TinyList<T> {
     #[inline]
     pub fn contains(&self, data: &T) -> bool {
         let mut elem = self.head.as_ref();
-        while let Some(ref e) = elem {
+        while let Some(e) = elem {
             if &e.data == data {
                 return true;
             }