Skip to content

Commit e1629a5

Browse files
committed
no warnings
1 parent 800e0d6 commit e1629a5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

intmut/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ pub fn intmut() {
1212

1313
let a = Rc::new(Cons(Rc::clone(&value), Rc::new(Nil)));
1414
println!("a before = {a:?}");
15+
match *a {
16+
Cons(ref v, ref tail) => println!("a value = {v:?}, tail = {tail:?}"),
17+
Nil => println!("a is Nil"),
18+
}
1519

1620
let b = Cons(Rc::new(RefCell::new(3)), Rc::clone(&a));
1721
let c = Cons(Rc::new(RefCell::new(4)), Rc::clone(&a));

0 commit comments

Comments
 (0)