From 66951e8f78d054403580acc42f2b7b38db8d05c4 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sat, 28 Oct 2023 10:41:01 +0800 Subject: [PATCH] 1 --- src/listhead.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/listhead.rs b/src/listhead.rs index fc31ada..42e3947 100644 --- a/src/listhead.rs +++ b/src/listhead.rs @@ -15,7 +15,7 @@ pub struct ListHead { impl ListHead { fn new(data: Weak::>) -> Rc::> { - let this = Rc::new(RefCell::new(ListHead{ + let this = Rc::new(RefCell::new(Self{ prev: Default::default(), next: Default::default(), data: data,