fixrs 0.1.0

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
name: multi_same_line
description: 同一行多次调用相同绝对路径应全部精准替换
input: |
  pub fn check() {
      let diff = wbase::time::now_secs() - wbase::time::now_secs();
  }
expected: |
  use wbase::time::now_secs;

  pub fn check() {
      let diff = now_secs() - now_secs();
  }