Skip to content

Commit

Permalink
fix(precommit): now properly checks formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
elijah-potter committed Mar 9, 2024
1 parent 1ae12b9 commit 95504f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions harper-ls/src/pos_conv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down Expand Up @@ -79,7 +79,7 @@ mod tests {

let start = Position {
line: 0,
character: 4,
character: 4
};

let i = position_to_index(&source, start);
Expand All @@ -99,7 +99,7 @@ mod tests {

let a = Position {
line: 1,
character: 2,
character: 2
};

let b = position_to_index(&source, a);
Expand Down
4 changes: 2 additions & 2 deletions precommit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 95504f5

Please sign in to comment.