about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2016-08-23 22:48:02 +0200
committerGitHub <noreply@github.com>2016-08-23 22:48:02 +0200
commitbc940193c8b46f505fd19df0e56e2c6ae5f7581a (patch)
treee86b2ed182271eba6100c48d32c5b0344ca04af3 /src/libcore
parent0bd99f9d5c3bb10920f33819b38392137f7bfa11 (diff)
parent0f9cb1b97cbb10eb400768c8e6a3851c93515470 (diff)
downloadrust-bc940193c8b46f505fd19df0e56e2c6ae5f7581a.tar.gz
rust-bc940193c8b46f505fd19df0e56e2c6ae5f7581a.zip
Rollup merge of #35910 - tbu-:pr_weird_linebreak, r=alexcrichton
Change a weird line break in `core::str`
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/str/mod.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libcore/str/mod.rs b/src/libcore/str/mod.rs
index e18aa07b75d..5dc5880e310 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,