File tree Expand file tree Collapse file tree 2 files changed +13
-10
lines changed
Expand file tree Collapse file tree 2 files changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ export RUST_BACKTRACE := "full"
44export SKIP_WASM_BUILD := " 1"
55export RUST_BIN_DIR := " target/x86_64-unknown-linux-gnu"
66export TARGET := " x86_64-unknown-linux-gnu"
7- export RUSTV := " nightly-2024-03-05 "
7+ export RUSTV := " stable "
88export RELEASE_NAME := " development"
99
1010fmt :
@@ -25,13 +25,13 @@ benchmarks:
2525
2626clippy :
2727 @ echo " Running cargo clippy..."
28- cargo + {{ RUSTV}} clippy -- -D clippy::panic \
28+ cargo + {{ RUSTV}} clippy --workspace --all-targets -- -D \
2929 - D clippy::todo \
3030 - D clippy::unimplemented
3131
3232clippy-fix :
3333 @ echo " Running cargo clippy with automatic fixes on potentially dirty code..."
34- cargo + {{ RUSTV}} clippy --fix --allow-dirty -- -A clippy::panic \
34+ cargo + {{ RUSTV}} clippy --fix --allow-dirty --workspace --all-targets -- -A \
3535 - A clippy::todo \
3636 - A clippy::unimplemented
3737fix :
Original file line number Diff line number Diff line change @@ -920,17 +920,20 @@ fn test_epoch_runs_when_registration_disabled() {
920920 let block: u64 = 1 ;
921921 SubtensorModule :: generate_emission ( block) ;
922922
923- step_block ( 1 ) ; // Now block 2
923+ step_block ( 1 ) ; // Now block 2
924924
925- // Verify blocks since last step was set
926- assert_eq ! ( SubtensorModule :: get_blocks_since_last_step( netuid_off) , 1 ) ;
925+ // Verify blocks since last step was set
926+ assert_eq ! ( SubtensorModule :: get_blocks_since_last_step( netuid_off) , 1 ) ;
927927
928928 // Step to the next epoch block
929929 let epoch_block: u16 = tempo;
930930 step_block ( epoch_block) ;
931931
932- // Verify blocks since last step was set, this indicates we ran the epoch
933- assert_eq ! ( SubtensorModule :: get_blocks_since_last_step( netuid_off) , 0 as u64 ) ;
934- assert ! ( SubtensorModule :: get_loaded_emission_tuples( netuid_off) . is_some( ) ) ;
932+ // Verify blocks since last step was set, this indicates we ran the epoch
933+ assert_eq ! (
934+ SubtensorModule :: get_blocks_since_last_step( netuid_off) ,
935+ 0_u64
936+ ) ;
937+ assert ! ( SubtensorModule :: get_loaded_emission_tuples( netuid_off) . is_some( ) ) ;
935938 } ) ;
936- }
939+ }
You can’t perform that action at this time.
0 commit comments