Perf Experiment: Wait, what if I just skip the trait alias

This commit is contained in:
Scott McMurray
2021-05-05 22:47:02 -07:00
parent 3d9660111c
commit b7a6c4a905
34 changed files with 110 additions and 131 deletions

View File

@@ -1,7 +1,7 @@
use crate::char;
use crate::convert::TryFrom;
use crate::mem;
use crate::ops::{self, TryWhereOutputEquals};
use crate::ops::{self, Try};
use super::{FusedIterator, TrustedLen, TrustedRandomAccess};
@@ -755,7 +755,7 @@ impl<A: Step> Iterator for ops::RangeInclusive<A> {
where
Self: Sized,
F: FnMut(B, Self::Item) -> R,
R: TryWhereOutputEquals<B>,
R: Try<Output = B>,
{
if self.is_empty() {
return try { init };
@@ -860,7 +860,7 @@ impl<A: Step> DoubleEndedIterator for ops::RangeInclusive<A> {
where
Self: Sized,
F: FnMut(B, Self::Item) -> R,
R: TryWhereOutputEquals<B>,
R: Try<Output = B>,
{
if self.is_empty() {
return try { init };