Skip to content

Remove empty list imports #90

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 1 commit into from
Jun 23, 2015
Merged

Remove empty list imports #90

merged 1 commit into from
Jun 23, 2015

Conversation

marcusklaas
Copy link
Contributor

Removes imports of the form use std::convert::{};.

// Format up to last newline
let last_pos = self.last_pos;
let span = codemap::mk_sp(last_pos, item.span.lo);
let snippet = self.codemap.span_to_snippet(span).unwrap();
Copy link
Member

Choose a reason for hiding this comment

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

You can use self.snippet here

@nrc
Copy link
Member

nrc commented Jun 2, 2015

Looks good other than the snippet nit

@nrc
Copy link
Member

nrc commented Jun 23, 2015

@marcusklaas sorry this took so long to merge - GitHub doesn't send notifications when you push, only when you comment, so you need to ping me when you update the PR (or it will take me weeks to notice :-( ).

nrc added a commit that referenced this pull request Jun 23, 2015
@nrc nrc merged commit 1488d5e into rust-lang:master Jun 23, 2015
@marcusklaas marcusklaas deleted the empty-imports branch September 11, 2015 09:22
@ytmimi ytmimi mentioned this pull request Nov 12, 2024
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