Просмотр исходного кода

book/development: Use +nightly for cargo fmt.

parazyd 4 лет назад
Родитель
Сommit
3d9a8f1c41
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      book/src/development.md

+ 1 - 1
book/src/development.md

@@ -9,7 +9,7 @@ this by creating a git `pre-commit` hook like the following:
 
 
 ```shell
 ```shell
 #!/bin/sh
 #!/bin/sh
-if ! cargo fmt -- --check >/dev/null; then
+if ! cargo +nightly fmt -- --check >/dev/null; then
     echo "There are some code style issues. Run 'cargo fmt' to fix it."
     echo "There are some code style issues. Run 'cargo fmt' to fix it."
     exit 1
     exit 1
 fi
 fi