Fix infinite loop

This commit is contained in:
dalance 2019-08-19 19:29:06 +09:00
parent 74d637f511
commit e7ef5913f1

View File

@ -412,7 +412,7 @@ where
{ {
fn from(x: &'a Box<T>) -> Self { fn from(x: &'a Box<T>) -> Self {
let mut ret = Vec::new(); let mut ret = Vec::new();
let mut x: RefNodes<'a> = x.into(); let mut x: RefNodes<'a> = (&**x).into();
ret.append(&mut x.0); ret.append(&mut x.0);
ret.into() ret.into()
} }