From fee4fc527d74b7c576e38b6627444937c8ad8579 Mon Sep 17 00:00:00 2001
From: Annabella Gethke <annabella.gethke@hu-berlin.de>
Date: Mon, 8 May 2023 21:22:02 +0200
Subject: [PATCH] Warnings suppressed

---
 src/stack.rs | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/stack.rs b/src/stack.rs
index 5cc88f0..b75c528 100644
--- a/src/stack.rs
+++ b/src/stack.rs
@@ -1,5 +1,4 @@
 use crate::Stack;
-use std::mem;
 // TODO Complete implementation
 impl Stack for Vec<i32> {
     fn init() -> Self {
@@ -57,7 +56,7 @@ impl Stack for ListStack {
         
         match self {
             //mem:replace notwendig da liststack keinen copytrait hat und wir so nicht ownership wechseln koennen             
-            Val(value, other) => *self = Val(i,Some(Box::new(std::mem::replace(self, Nil)))),
+            Val(_value, _other) => *self = Val(i,Some(Box::new(std::mem::replace(self, Nil)))),
             //zeigt urspruenglich auf nil  => fuege ein und mache restliste zu nil
             Nil => *self = Val(i,None),
         };
@@ -67,7 +66,7 @@ impl Stack for ListStack {
     fn top_val(&self) -> Option<&i32> {
             match self{
                 Nil => None,
-                Val(value, other) => Some(value),
+                Val(value, _other) => Some(value),
         
             }
 
@@ -92,7 +91,7 @@ impl Stack for ListStack {
     fn is_empty(&self) -> bool {
         match self{
             Nil => true,
-            Val(value,other) => false,
+            Val(_value,_other) => false,
         }
     }
 }
-- 
GitLab