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
name: associated_item
description: 关联函数与枚举变体智能保留类型段并导入类型
input: |
  pub fn run() {
      let err = std::io::Error::new(std::io::ErrorKind::ConnectionRefused, "failed");
  }
expected: |
  use std::io::Error;
  use std::io::ErrorKind;

  pub fn run() {
      let err = Error::new(ErrorKind::ConnectionRefused, "failed");
  }