Skip to content

Commit

Permalink
Fix up Rust linting.
Browse files Browse the repository at this point in the history
  • Loading branch information
lgarron committed Feb 1, 2025
1 parent 6277440 commit 61dacc9
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ reset: clean
lint: lint-cpp lint-js lint-rust

.PHONY: format
format: format-cpp format-js
format: format-cpp format-js format-rust

.PHONY: publish
publish: test-rust publish-rust
Expand Down
6 changes: 6 additions & 0 deletions Makefiles/rust.Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ build-rust:
.PHONY: lint-rust
lint-rust:
cargo clippy -- --deny warnings
cargo fmt --check

.PHONY: format-rust
format-rust:
cargo clippy --fix
cargo fmt

.PHONY: publish-rust
publish-rust: publish-rust-main publish-rust-ffi
Expand Down
2 changes: 1 addition & 1 deletion src/rs/_internal/search/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
pub mod pattern_validity_checker;
pub mod coordinates;
pub(crate) mod hash_prune_table;
#[allow(clippy::module_inception)]
Expand All @@ -7,6 +6,7 @@ pub mod indexed_vec;
pub(crate) mod mask_pattern;
pub mod move_count;
pub(crate) mod pattern_stack;
pub mod pattern_validity_checker;
pub(crate) mod prune_table_trait;
pub(crate) mod recursion_filter_trait;
pub(crate) mod recursive_work_tracker;
Expand Down
4 changes: 3 additions & 1 deletion src/rs/scramble/puzzles/square1/scramble.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ use lazy_static::lazy_static;
use rand::{seq::SliceRandom, thread_rng};

use crate::{
_internal::search::{pattern_validity_checker::PatternValidityChecker, mask_pattern::apply_mask},
_internal::search::{
mask_pattern::apply_mask, pattern_validity_checker::PatternValidityChecker,
},
scramble::{
puzzles::square1::phase1::Phase1Checker,
randomize::{
Expand Down

0 comments on commit 61dacc9

Please sign in to comment.