skoupidi hace 2 años
padre
commit
b2d2c7a4e8
Se han modificado 2 ficheros con 3 adiciones y 3 borrados
  1. 2 2
      doc/src/dev/dev.md
  2. 1 1
      src/zkas/parser.rs

+ 2 - 2
doc/src/dev/dev.md

@@ -25,12 +25,12 @@ intentions.
 ## cargo fmt pre-commit hook
 
 To ensure every contributor uses the same code style, make sure
-you run `cargo fmt` before committing. You can force yourself
+you run `make fmt` before committing. You can force yourself
 to do this by creating a git `pre-commit` hook like the following:
 
 ```shell
 #!/bin/sh
-if ! cargo fmt -- --check >/dev/null; then
+if ! cargo +nightly fmt --all -- --check >/dev/null; then
     echo "There are some code style issues. Run 'cargo fmt' to fix it."
     exit 1
 fi

+ 1 - 1
src/zkas/parser.rs

@@ -951,7 +951,7 @@ impl Parser {
                     return Err(self.error.abort(
                         "This token is not a symbol.",
                         token.line,
-                        token.column
+                        token.column,
                     ))
                 }