diff options
| -rw-r--r-- | library/core/src/slice/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/slice/mod.rs b/library/core/src/slice/mod.rs index 5f1fe08fe81..1ab7d68805a 100644 --- a/library/core/src/slice/mod.rs +++ b/library/core/src/slice/mod.rs @@ -1792,7 +1792,7 @@ impl<T> [T] { { // This function will need rewriting if and when SlicePattern becomes more sophisticated. let prefix = prefix.as_slice(); - let n = prefix.as_slice().len(); + let n = prefix.len(); if n <= self.len() { let (head, tail) = self.split_at(n); if head == prefix { |
