File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
3
3
name = " regex"
4
- version = " 0.1.3 "
4
+ version = " 0.1.4 "
5
5
authors = [" The Rust Project Developers" ]
6
6
license = " MIT/Apache-2.0"
7
7
readme = " README.md"
Original file line number Diff line number Diff line change @@ -908,7 +908,7 @@ impl<'a> Parser<'a> {
908
908
}
909
909
910
910
fn parse_uint ( & self , s : & str ) -> Result < uint , Error > {
911
- match from_str :: < uint > ( s ) {
911
+ match s . parse :: < uint > ( ) {
912
912
Some ( i) => Ok ( i) ,
913
913
None => {
914
914
self . err ( format ! ( "Expected an unsigned integer but got '{}'." ,
Original file line number Diff line number Diff line change @@ -541,8 +541,8 @@ impl Regex {
541
541
}
542
542
543
543
pub enum NamesIter < ' a > {
544
- NamesIterNative ( :: std:: slice:: Items < ' a , Option < & ' static str > > ) ,
545
- NamesIterDynamic ( :: std:: slice:: Items < ' a , Option < String > > )
544
+ NamesIterNative ( :: std:: slice:: Iter < ' a , Option < & ' static str > > ) ,
545
+ NamesIterDynamic ( :: std:: slice:: Iter < ' a , Option < String > > )
546
546
}
547
547
548
548
impl < ' a > Iterator < Option < String > > for NamesIter < ' a > {
@@ -770,7 +770,7 @@ impl<'t> Captures<'t> {
770
770
let pre = refs. at ( 1 ) . unwrap_or ( "" ) ;
771
771
let name = refs. at ( 2 ) . unwrap_or ( "" ) ;
772
772
format ! ( "{}{}" , pre,
773
- match from_str :: <uint>( name . as_slice ( ) ) {
773
+ match name . parse :: <uint>( ) {
774
774
None => self . name( name) . unwrap_or( "" ) . to_string( ) ,
775
775
Some ( i) => self . at( i) . unwrap_or( "" ) . to_string( ) ,
776
776
} )
You can’t perform that action at this time.
0 commit comments