Refine inlining.
This commit is contained in:
@@ -49,6 +49,8 @@ fn build_type() -> Result<(), Box<EvalAltResult>> {
|
||||
type Item = INT;
|
||||
type IntoIter = std::vec::IntoIter<Self::Item>;
|
||||
|
||||
#[inline]
|
||||
#[must_use]
|
||||
fn into_iter(self) -> Self::IntoIter {
|
||||
vec![self.x, self.y, self.z].into_iter()
|
||||
}
|
||||
|
@@ -337,6 +337,8 @@ impl IntoIterator for MyIterableType {
|
||||
type Item = char;
|
||||
type IntoIter = std::vec::IntoIter<Self::Item>;
|
||||
|
||||
#[inline]
|
||||
#[must_use]
|
||||
fn into_iter(self) -> Self::IntoIter {
|
||||
self.0.chars().collect::<Vec<_>>().into_iter()
|
||||
}
|
||||
|
Reference in New Issue
Block a user