File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 11[package ]
22
33name = " regex"
4- version = " 0.1.3 "
4+ version = " 0.1.4 "
55authors = [" The Rust Project Developers" ]
66license = " MIT/Apache-2.0"
77readme = " README.md"
Original file line number Diff line number Diff line change @@ -908,7 +908,7 @@ impl<'a> Parser<'a> {
908908 }
909909
910910 fn parse_uint ( & self , s : & str ) -> Result < uint , Error > {
911- match from_str :: < uint > ( s ) {
911+ match s . parse :: < uint > ( ) {
912912 Some ( i) => Ok ( i) ,
913913 None => {
914914 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 {
541541}
542542
543543pub 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 > > )
546546}
547547
548548impl < ' a > Iterator < Option < String > > for NamesIter < ' a > {
@@ -770,7 +770,7 @@ impl<'t> Captures<'t> {
770770 let pre = refs. at ( 1 ) . unwrap_or ( "" ) ;
771771 let name = refs. at ( 2 ) . unwrap_or ( "" ) ;
772772 format ! ( "{}{}" , pre,
773- match from_str :: <uint>( name . as_slice ( ) ) {
773+ match name . parse :: <uint>( ) {
774774 None => self . name( name) . unwrap_or( "" ) . to_string( ) ,
775775 Some ( i) => self . at( i) . unwrap_or( "" ) . to_string( ) ,
776776 } )
You can’t perform that action at this time.
0 commit comments