Skip to content

rustfmt should remove ::{self} in use statements #6278

Closed as not planned
Closed as not planned
@antonilol

Description

@antonilol

In my opinion, rustfmt should rewrite use std::io::{self}; to use std::io;. use std::io::{self}; can sometimes be left over after removing other imports. If you for example (automatically) import std::io and std::io::Read (with rust-analyzer) and then remove the Read import, use std::io::{self}; is left behind.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions