Closed jonahgao closed 4 hours ago
N/A
Replace &[T.clone()] with std::slice::from_ref(&T) to avoid cloning of T.
&[T.clone()]
std::slice::from_ref(&T)
Yes. By existing tests.
No
Thanks @comphead @alamb for the review.
Which issue does this PR close?
N/A
Rationale for this change
Replace
&[T.clone()]
withstd::slice::from_ref(&T)
to avoid cloning of T.What changes are included in this PR?
Are these changes tested?
Yes. By existing tests.
Are there any user-facing changes?
No