We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75ae109 commit 42ef5bdCopy full SHA for 42ef5bd
src/safe-guides/code_style/fmt.md
@@ -10,6 +10,12 @@ Rust 有自动化格式化工具 rustfmt ,可以帮助开发者摆脱手工调
10
11
如需了解在稳定版 Rust 中使用未稳定配置项的方法、配置示例及其他全局配置项说明,请参阅:[Rustfmt 配置相关说明](./../Appendix/tools/rustfmt.md) 。
12
13
+**【注意事项】**
14
+
15
+因为 rustfmt 工具会自动修改代码,为了确保 rustfmt 不会因为意外而改错代码,所以在使用 rustfmt 时应该注意下面两项描述:
16
17
+1. 务必保证在全部把代码修改完毕且编译通过之后再执行 rustfmt 命令。 因为 rustfmt 执行过程中不会对代码进行编译,所以就不会有静态检查保护。
18
+2. 如果是使用 IDE 或 编辑器的时候开启了自动保护功能,就不要开启自动执行 rustfmt 功能。
19
20
## 列表
21
0 commit comments