Removed deprecated functions map
and flat_map
for vectors and slices.
This commit is contained in:
parent
86890b9e7c
commit
c356e3ba6a
58 changed files with 278 additions and 325 deletions
|
@ -285,12 +285,12 @@ impl<'a> AsciiStr for &'a [Ascii] {
|
|||
|
||||
#[inline]
|
||||
fn to_lower(&self) -> ~[Ascii] {
|
||||
self.map(|a| a.to_lower())
|
||||
self.iter().map(|a| a.to_lower()).collect()
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn to_upper(&self) -> ~[Ascii] {
|
||||
self.map(|a| a.to_upper())
|
||||
self.iter().map(|a| a.to_upper()).collect()
|
||||
}
|
||||
|
||||
#[inline]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue