Skip to content
This repository was archived by the owner on May 18, 2024. It is now read-only.

Commit 7dfd135

Browse files
committed
1. Up
1 parent ca3b667 commit 7dfd135

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/lib.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -682,14 +682,14 @@ macro_rules! atoi_build_type {
682682
(u, $($t:ty),+ ) => {
683683
$(
684684
impl Atoi<$t> for $t {
685-
fn atoi_iter<'a, I: Iterator<Item=&'a u8>>(mut iter: I) -> AtoiResult< Self > {
685+
fn atoi_iter<'a, I: Iterator<Item=&'a u8>>(mut iter: I) -> AtoiResult< $t > {
686686
atoi_build!(unsigned, iter);
687687
}
688688

689-
fn atoi_iter_stop<'a, I: Iterator<Item=&'a u8>>(mut iter: I, end: u8) -> AtoiResult< Self > {
689+
fn atoi_iter_stop<'a, I: Iterator<Item=&'a u8>>(mut iter: I, end: u8) -> AtoiResult< $t > {
690690
atoi_build!(unsigned, iter, end);
691691
}
692-
fn atoi_iter_wait_stop<'a, I: Iterator<Item=&'a u8>>(mut iter: I, end: u8) -> AtoiResult< Self > {
692+
fn atoi_iter_wait_stop<'a, I: Iterator<Item=&'a u8>>(mut iter: I, end: u8) -> AtoiResult< $t > {
693693
atoi_build!(unsigned_wait_end, iter, end);
694694
}
695695
}
@@ -698,14 +698,14 @@ macro_rules! atoi_build_type {
698698
(i, $($t:ty),+ ) => {
699699
$(
700700
impl Atoi<$t> for $t {
701-
fn atoi_iter<'a, I: Iterator<Item=&'a u8>>(mut iter: I) -> AtoiResult< Self > {
701+
fn atoi_iter<'a, I: Iterator<Item=&'a u8>>(mut iter: I) -> AtoiResult< $t > {
702702
atoi_build!(signed, iter);
703703
}
704704

705-
fn atoi_iter_stop<'a, I: Iterator<Item=&'a u8>>(mut iter: I, end: u8) -> AtoiResult< Self > {
705+
fn atoi_iter_stop<'a, I: Iterator<Item=&'a u8>>(mut iter: I, end: u8) -> AtoiResult< $t > {
706706
atoi_build!(signed, iter, end);
707707
}
708-
fn atoi_iter_wait_stop<'a, I: Iterator<Item=&'a u8>>(mut iter: I, end: u8) -> AtoiResult< Self > {
708+
fn atoi_iter_wait_stop<'a, I: Iterator<Item=&'a u8>>(mut iter: I, end: u8) -> AtoiResult< $t > {
709709
atoi_build!(signed_wait_end, iter, end);
710710
}
711711
}

0 commit comments

Comments
 (0)