Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
open-junius committed Jul 5, 2024
1 parent 85fafe6 commit b761d37
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions pallets/subtensor/tests/children_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ fn test_get_child_info() {
}

#[test]
#[allow(clippy::indexing_slicing)]
fn test_get_children_info() {
new_test_ext(1).execute_with(|| {
let netuid: u16 = 1;
Expand Down Expand Up @@ -97,6 +98,7 @@ fn test_get_children_info() {
}

#[test]
#[allow(clippy::indexing_slicing)]
fn test_get_children_info_multiple_parents() {
new_test_ext(1).execute_with(|| {
let netuid: u16 = 1;
Expand Down Expand Up @@ -186,6 +188,7 @@ fn test_get_children_info_no_children() {
}

#[test]
#[allow(clippy::indexing_slicing)]
fn test_get_children_info_after_revoke() {
new_test_ext(1).execute_with(|| {
let netuid: u16 = 1;
Expand Down
2 changes: 1 addition & 1 deletion pallets/subtensor/tests/coinbase.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ fn test_coinbase_basic() {
SubtensorModule::increase_stake_on_coldkey_hotkey_account(&coldkey, &hotkey, 1000);

// Set the subnet emission value to 1.
SubtensorModule::set_emission_values(&[netuid], vec![1]).unwrap();
assert!(SubtensorModule::set_emission_values(&[netuid], vec![1]).is_ok());
assert_eq!(SubtensorModule::get_subnet_emission_value(netuid), 1);

// Hotkey has no pending emission
Expand Down

0 comments on commit b761d37

Please sign in to comment.