Skip to content

Commit be70ed3

Browse files
committed
Minor simplification for &Array + &Array code
(Don't create a .view() when not needed)
1 parent 95e24b9 commit be70ed3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2609,7 +2609,7 @@ impl<'a, A, S, S2, D, E> $trt<&'a ArrayBase<S2, E>> for &'a ArrayBase<S, D>
26092609
fn $mth (self, rhs: &'a ArrayBase<S2, E>) -> OwnedArray<A, D>
26102610
{
26112611
// FIXME: Can we co-broadcast arrays here? And how?
2612-
self.to_owned().$mth(rhs.view())
2612+
self.to_owned().$mth(rhs)
26132613
}
26142614
}
26152615

0 commit comments

Comments
 (0)