From f77cabecbba8d842cd944b064065ad4e6a6b760d Mon Sep 17 00:00:00 2001 From: Aaron Turon Date: Mon, 11 Aug 2014 16:47:46 -0700 Subject: Deprecation fallout in libcollections --- src/libcollections/string.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libcollections/string.rs') diff --git a/src/libcollections/string.rs b/src/libcollections/string.rs index 9465fea6dcb..952f28da2af 100644 --- a/src/libcollections/string.rs +++ b/src/libcollections/string.rs @@ -669,7 +669,7 @@ impl String { /// } /// ``` pub unsafe fn shift_byte(&mut self) -> Option { - self.vec.shift() + self.vec.remove(0) } /// Removes the first character from the string buffer and returns it. -- cgit 1.4.1-3-g733a5