Skip to content

Clean up Some Clippy Warnings #478

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

Merged
merged 8 commits into from
Jul 15, 2018
Merged

Clean up Some Clippy Warnings #478

merged 8 commits into from
Jul 15, 2018

Conversation

Slowki
Copy link
Contributor

@Slowki Slowki commented Jul 14, 2018

This PR cleans up some Clippy warnings

@alexcrichton
Copy link
Contributor

Thanks!

@@ -39,7 +39,7 @@ pub struct Import {

#[cfg_attr(feature = "extra-traits", derive(Debug, PartialEq, Eq))]
pub enum ImportKind {
Function(ImportFunction),
Function(Box<ImportFunction>),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We aren't really going for speed here, could this be left as is to keep it consistent ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@@ -31,19 +31,19 @@ fn to_ident_name(s: &str) -> Cow<str> {
impl ToTokens for ast::Program {
// Generate wrappers for all the items that we've found
fn to_tokens(&self, tokens: &mut TokenStream) {
for export in self.exports.iter() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I personally prefer the previous way this was written, could it stay as it was?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Slowki added 2 commits July 15, 2018 12:19
…iners instead of using explicit iteration methods"

This reverts commit 5c4804f.
@alexcrichton alexcrichton merged commit 4cc069b into rustwasm:master Jul 15, 2018
@Slowki Slowki deleted the clippy branch July 15, 2018 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants