Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unnecessary into_iter() #305

Merged
merged 2 commits into from
Jan 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion derive_builder_core/src/change_span.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ pub(crate) fn change_span(tokens: TokenStream, span: Span) -> TokenStream {
}
}
}
FromIterator::from_iter(result.into_iter())
FromIterator::from_iter(result)
}
6 changes: 3 additions & 3 deletions derive_builder_no_std_tests/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#![no_std]
#![allow(unused, clippy::blacklisted_name)]
#![allow(unused)]

extern crate alloc;
#[macro_use]
Expand All @@ -19,8 +19,8 @@ pub fn build_foo_ok() -> Foo {
}

pub fn build_foo_err() -> Option<String> {
let foo = FooBuilder::default().build();
foo.err().map(|err| err.to_string())
let item = FooBuilder::default().build();
item.err().map(|err| err.to_string())
}

#[cfg(test)]
Expand Down