forked from metaverse/kernel-dev
解决Vec移除元素时长度不更新的问题
This commit is contained in:
parent
41dd0a0e00
commit
6a935dc2b7
|
@ -112,6 +112,7 @@ impl<T: Default> Vec<T> {
|
|||
self.length - index - 1,
|
||||
);
|
||||
}
|
||||
self.length -= 1;
|
||||
t
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue