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
name: generic_call
description: 带泛型参数的路径调用不应产生重复泛型
input: |
  pub fn alloc<T>() -> *mut T {
      core::ptr::null_mut::<u8>()
  }
expected: |
  use core::ptr::null_mut;

  pub fn alloc<T>() -> *mut T {
      null_mut::<u8>()
  }