Skip to content

Commit

Permalink
fix: use same Rust version locally as in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
chris13524 committed May 7, 2024
1 parent 2c8bbe5 commit 8f03589
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 13 deletions.
8 changes: 4 additions & 4 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ cargo-build-docs: (_cargo-build-docs "" "nodeps")
# Format the application code
@cargo-fmt: _check-cmd-cargo-fmt
printf '==> Running {{ color-cmd }}rustfmt{{ nocolor }}\n'
cargo +nightly fmt
cargo fmt

# Build service for development
cargo-build: _check-cmd-cargo
Expand Down Expand Up @@ -164,7 +164,7 @@ cargo-test-default: _check-cmd-cargo
# Run project tests with all features activated
cargo-test-all: _check-cmd-cargo
@printf '==> Testing project ({{ light-green }}all features{{ nocolor }})\n'
cargo +nightly test --all-features
cargo test --all-features

# Run tests from project documentation
cargo-test-doc: _check-cmd-cargo
Expand All @@ -184,7 +184,7 @@ cargo-check: _check-cmd-cargo
# Check rust project with clippy
cargo-clippy: _check-cmd-cargo-clippy
@printf '==> Running {{ color-cmd }}clippy{{ nocolor }}\n'
cargo +nightly clippy --all-features --tests -- -D clippy::all
cargo clippy --all-features --tests -- -D clippy::all

# Check unused dependencies
cargo-udeps: _check-cmd-cargo-udeps
Expand All @@ -194,7 +194,7 @@ cargo-udeps: _check-cmd-cargo-udeps
# Check the rust code formatting
cargo-checkfmt: _check-cmd-cargo-fmt
@printf '==> Running {{ color-cmd }}rustfmt{{ nocolor }} --check\n'
cargo +nightly fmt --check
cargo fmt --check

################################################################################
# Terraform recipes
Expand Down
4 changes: 1 addition & 3 deletions src/handlers/profile/address.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ use {
state::AppState,
utils::{
crypto::{
constant_time_eq,
convert_coin_type_to_evm_chain_id,
is_coin_type_supported,
constant_time_eq, convert_coin_type_to_evm_chain_id, is_coin_type_supported,
verify_message_signature,
},
self_transport::SelfTransport,
Expand Down
4 changes: 1 addition & 3 deletions src/handlers/profile/attributes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ use {
state::AppState,
utils::{
crypto::{
constant_time_eq,
convert_coin_type_to_evm_chain_id,
is_coin_type_supported,
constant_time_eq, convert_coin_type_to_evm_chain_id, is_coin_type_supported,
verify_message_signature,
},
self_transport::SelfTransport,
Expand Down
4 changes: 1 addition & 3 deletions src/handlers/profile/register.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ use {
state::AppState,
utils::{
crypto::{
convert_coin_type_to_evm_chain_id,
is_coin_type_supported,
verify_message_signature,
convert_coin_type_to_evm_chain_id, is_coin_type_supported, verify_message_signature,
},
self_transport::SelfTransport,
},
Expand Down

0 comments on commit 8f03589

Please sign in to comment.