1
Fork 0

Removed deprecated functions map and flat_map for vectors and slices.

This commit is contained in:
Marvin Löbel 2014-03-28 20:42:34 +01:00
parent 86890b9e7c
commit c356e3ba6a
58 changed files with 278 additions and 325 deletions

View file

@ -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]