diff options
| author | newpavlov <newpavlov@gmail.com> | 2018-06-26 13:34:42 +0300 |
|---|---|---|
| committer | newpavlov <newpavlov@gmail.com> | 2018-06-26 13:34:42 +0300 |
| commit | 7c316090ebf216308b36ba1651bc6286b113ebd7 (patch) | |
| tree | 85e967284398f9cf0be759fd42d1457e11a7945e /src/liballoc/string.rs | |
| parent | 773ce53ce7b3acb97cfbd3d189dc3fbf33ec05c6 (diff) | |
| download | rust-7c316090ebf216308b36ba1651bc6286b113ebd7.tar.gz rust-7c316090ebf216308b36ba1651bc6286b113ebd7.zip | |
Deprecation of str::slice_uncheked(_mut)
Diffstat (limited to 'src/liballoc/string.rs')
| -rw-r--r-- | src/liballoc/string.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/string.rs b/src/liballoc/string.rs index a988b6a26d9..7dbd86c0038 100644 --- a/src/liballoc/string.rs +++ b/src/liballoc/string.rs @@ -1222,7 +1222,7 @@ impl String { while idx < len { let ch = unsafe { - self.slice_unchecked(idx, len).chars().next().unwrap() + self.get_unchecked(idx..len).chars().next().unwrap() }; let ch_len = ch.len_utf8(); |
