Perf Experiment: Wait, what if I just skip the trait alias
This commit is contained in:
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user