mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-09-17 14:57:18 +03:00
33770df77d
* cargo-*: add Chinese translation --------- Co-authored-by: Jack Lin <blueskyson1401@gmail.com> Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
547 B
547 B
cargo fix
自动修复
rustc
报告的 lint 警告。 更多信息:https://doc.rust-lang.org/cargo/commands/cargo-fix.html.
- 即使已经有编译器错误,也要修复代码:
cargo fix --broken-code
- 即使工作目录有更改,也要修复代码:
cargo fix --allow-dirty
- 将一个包迁移到下一个 Rust 版本:
cargo fix --edition
- 修复包的库:
cargo fix --lib
- 修复指定的集成测试:
cargo fix --test {{名称}}
- 修复工作区中的所有成员:
cargo fix --workspace