fixrs 0.1.6

Blazing-fast CLI to replace Rust qualified paths with use statements, auto-fixing clippy::absolute_paths
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
name: conflict_enum_variants
description: 同名枚举变体路径在多个不同模块存在时正确检测冲突并提升模块
options:
  extra_crates: ["custom"]
input: |
  pub fn run() {
    let _ = std::io::ErrorKind::Other;
    let _ = custom::net::ErrorKind::Other;
  }
expected: |
  use custom::net;
  use std::io;

  pub fn run() {
    let _ = io::ErrorKind::Other;
    let _ = net::ErrorKind::Other;
  }