From 6a935dc2b712efb3cbb6f72750e9428a6a4fa0de Mon Sep 17 00:00:00 2001 From: pointer-to-bios Date: Thu, 2 May 2024 20:49:58 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3Vec=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E5=85=83=E7=B4=A0=E6=97=B6=E9=95=BF=E5=BA=A6=E4=B8=8D=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/libk/alloc/vec.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libk/alloc/vec.rs b/src/libk/alloc/vec.rs index a33e2dc..effb584 100644 --- a/src/libk/alloc/vec.rs +++ b/src/libk/alloc/vec.rs @@ -112,6 +112,7 @@ impl Vec { self.length - index - 1, ); } + self.length -= 1; t }