diff options
| author | Tobias Bucher <tobiasbucher5991@gmail.com> | 2016-08-23 02:05:53 +0200 |
|---|---|---|
| committer | Tobias Bucher <tobiasbucher5991@gmail.com> | 2016-08-23 02:05:53 +0200 |
| commit | 0f9cb1b97cbb10eb400768c8e6a3851c93515470 (patch) | |
| tree | a8ccbbfec509fb06c9cd71f4db89120337f481f5 /src/libcore/str | |
| parent | 3c5a0fa45b5e2786b6e64e27f48cd129e7aefdbd (diff) | |
Change a weird line break in `core::str`
Diffstat (limited to 'src/libcore/str')
| -rw-r--r-- | src/libcore/str/mod.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libcore/str/mod.rs b/src/libcore/str/mod.rs index fdcadd43a0f..c085c8103fa 100644 --- a/src/libcore/str/mod.rs +++ b/src/libcore/str/mod.rs @@ -388,8 +388,9 @@ pub fn next_code_point<'a, I: Iterator<Item = &'a u8>>(bytes: &mut I) -> Option< /// Reads the last code point out of a byte iterator (assuming a /// UTF-8-like encoding). #[inline] -fn next_code_point_reverse<'a, - I: DoubleEndedIterator<Item = &'a u8>>(bytes: &mut I) -> Option<u32> { +fn next_code_point_reverse<'a, I>(bytes: &mut I) -> Option<u32> + where I: DoubleEndedIterator<Item = &'a u8>, +{ // Decode UTF-8 let w = match bytes.next_back() { None => return None, |
