Skip to content

Commit

Permalink
End the mystery of the unused Vec
Browse files Browse the repository at this point in the history
  • Loading branch information
keithtensor committed Sep 19, 2024
1 parent 2069a48 commit 23ab58a
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions pallets/subtensor/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ use sp_runtime::{
transaction_validity::{TransactionValidity, TransactionValidityError},
DispatchError,
};
use sp_std::marker::PhantomData;
use sp_std::{
marker::PhantomData,
vec::Vec,
};

// ============================
// ==== Benchmark Imports =====
Expand Down Expand Up @@ -71,8 +74,6 @@ pub mod pallet {
use frame_system::pallet_prelude::*;
use sp_core::H256;
use sp_runtime::traits::{Dispatchable, TrailingZeroInput};
use sp_std::vec;
use sp_std::vec::Vec;

#[cfg(not(feature = "std"))]
use alloc::boxed::Box;
Expand Down Expand Up @@ -1579,12 +1580,6 @@ where
}
}

use sp_std::vec;

// TODO: unravel this rats nest, for some reason rustc thinks this is unused even though it's
// used not 25 lines below
#[allow(unused)]
use sp_std::vec::Vec;
use subtensor_macros::freeze_struct;

/// Trait for managing a membership pallet instance in the runtime
Expand Down

0 comments on commit 23ab58a

Please sign in to comment.