diff --git a/harper-ls/src/pos_conv.rs b/harper-ls/src/pos_conv.rs index 256356c7..ad00a53f 100644 --- a/harper-ls/src/pos_conv.rs +++ b/harper-ls/src/pos_conv.rs @@ -31,7 +31,7 @@ fn index_to_position(source: &[char], index: usize) -> Position { Position { line: lines as u32, - character: cols as u32, + character: cols as u32 } } @@ -79,7 +79,7 @@ mod tests { let start = Position { line: 0, - character: 4, + character: 4 }; let i = position_to_index(&source, start); @@ -99,7 +99,7 @@ mod tests { let a = Position { line: 1, - character: 2, + character: 2 }; let b = position_to_index(&source, a); diff --git a/precommit.sh b/precommit.sh index a648aed6..9cf5f2f1 100755 --- a/precommit.sh +++ b/precommit.sh @@ -7,7 +7,7 @@ set -eo pipefail R=$(pwd) RUSTDOCFLAGS="-D warnings" -cargo +nightly fmt +cargo +nightly fmt --check cargo clippy -- -Dwarnings cargo test cargo test --release @@ -23,5 +23,5 @@ cd $R/web yarn install yarn run format yarn run lint -yarn run check +yarn run check --check yarn run build