about summary refs log tree commit diff
path: root/src/libunicode
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-02-01 12:15:36 -0800
committerAlex Crichton <alex@alexcrichton.com>2015-02-01 13:05:23 -0800
commit0e4448409ef61c703b98e4c5b2fd99447308942d (patch)
tree8f06c519f16a5aebcd484e324e40db97321ea2d9 /src/libunicode
parent76ce1ea42158b5be3f3896df708602918d202947 (diff)
std: Remove extra type params on iter adaptors
Now that associated types are fully implemented the iterator adaptors only need
type parameters which are associated with actual storage. All other type
parameters can either be derived from these (e.g. they are an associated type)
or can be bare on the `impl` block itself.

This is a breaking change due to the removal of type parameters on these
iterator adaptors, but code can fairly easily migrate by just deleting the
relevant type parameters for each adaptor. Other behavior should not be
affected.

Closes #21839
[breaking-change]
Diffstat (limited to 'src/libunicode')
-rw-r--r--src/libunicode/u_str.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libunicode/u_str.rs b/src/libunicode/u_str.rs
index 9a757c0c980..0e3aacbc09a 100644
--- a/src/libunicode/u_str.rs
+++ b/src/libunicode/u_str.rs
@@ -32,7 +32,7 @@ use tables::grapheme::GraphemeCat;
 /// An iterator over the words of a string, separated by a sequence of whitespace
 #[stable(feature = "rust1", since = "1.0.0")]
 pub struct Words<'a> {
-    inner: Filter<&'a str, Split<'a, fn(char) -> bool>, fn(&&str) -> bool>,
+    inner: Filter<Split<'a, fn(char) -> bool>, fn(&&str) -> bool>,
 }
 
 /// Methods for Unicode string slices