Skip to content

Commit 1f73b56

Browse files
committed
Pull #[inline] into clone_fields
As the warning tells, it has no effect otherwise. It's unclear whether it's really meaningful, but for now keep in within the macro.
1 parent 1cb2c36 commit 1f73b56

File tree

3 files changed

+1
-2
lines changed

3 files changed

+1
-2
lines changed

src/flatten_ok.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ where
138138
T: IntoIterator,
139139
T::IntoIter: Clone,
140140
{
141-
#[inline]
142141
clone_fields!(iter, inner_front, inner_back);
143142
}
144143

src/impl_macros.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ macro_rules! debug_fmt_fields {
1515

1616
macro_rules! clone_fields {
1717
($($field:ident),*) => {
18+
#[inline] // TODO is this sensible?
1819
fn clone(&self) -> Self {
1920
Self {
2021
$($field: self.$field.clone(),)*

src/rciter_impl.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ pub fn rciter<I>(iterable: I) -> RcIter<I::IntoIter>
5151
}
5252

5353
impl<I> Clone for RcIter<I> {
54-
#[inline]
5554
clone_fields!(rciter);
5655
}
5756

0 commit comments

Comments
 (0)