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

Merge imports from the same module #1383

Closed
tomwhoiscontrary opened this issue Mar 16, 2017 · 1 comment · Fixed by #2603
Closed

Merge imports from the same module #1383

tomwhoiscontrary opened this issue Mar 16, 2017 · 1 comment · Fixed by #2603
Labels

Comments

@tomwhoiscontrary
Copy link

I would like two imports from the same module:

use std::time::Duration;
use std::time::Instant;

To become a single import list:

use std::time::{Duration, Instant};

Relatedly, i'd like this a duplicate import:

use std::time::Duration;
use std::time::Duration;

To become single:

use std::time::Duration;

!

And finally, it would be nice if there was an option to have turn an import of a module and some things from inside it:

use std::thread;
use std::thread::{Builder, JoinHandle};

Into a single import list using self for the module:

use std::thread::{self, Builder, JoinHandle};
@sergeysova
Copy link

Any progress here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants