Skip to content

Commit 5b115fc

Browse files
committed
Moar #[inline]
1 parent cc7d801 commit 5b115fc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

library/core/src/array/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,7 @@ trait SpecArrayClone: Clone {
355355

356356
#[cfg(not(bootstrap))]
357357
impl<T: Clone> SpecArrayClone for T {
358+
#[inline]
358359
default fn clone<const N: usize>(array: &[T; N]) -> [T; N] {
359360
// SAFETY: we know for certain that this iterator will yield exactly `N`
360361
// items.
@@ -364,6 +365,7 @@ impl<T: Clone> SpecArrayClone for T {
364365

365366
#[cfg(not(bootstrap))]
366367
impl<T: Copy> SpecArrayClone for T {
368+
#[inline]
367369
fn clone<const N: usize>(array: &[T; N]) -> [T; N] {
368370
*array
369371
}

0 commit comments

Comments
 (0)