Rust

Rust

Made by DeepSource

Unnecessary braces in use statement RS-C1002

Anti-pattern
Minor
Autofix

An import list with just one item can be simplified. The unnecessary braces can be safely omitted.

These braces are likely a remnant of a refactor.

Bad practice

use std::collections::{HashMap};
use std::io::{self};

Recommended

use std::collections::HashMap;
use std::io;