Skip to content

Commit 773f591

Browse files
committed
remove unnecessary type conversion
1 parent d6b3529 commit 773f591

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pallets/subtensor/src/rpc_info/metagraph.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1453,7 +1453,7 @@ impl<T: Config> Pallet<T> {
14531453
Some(SelectiveMetagraphIndex::Incentives) => SelectiveMetagraph {
14541454
netuid: netuid.into(),
14551455
incentives: Some(
1456-
Incentive::<T>::get(NetUidStorageIndex::from(netuid_index))
1456+
Incentive::<T>::get(netuid_index)
14571457
.into_iter()
14581458
.map(Compact::from)
14591459
.collect(),
@@ -1464,7 +1464,7 @@ impl<T: Config> Pallet<T> {
14641464
Some(SelectiveMetagraphIndex::LastUpdate) => SelectiveMetagraph {
14651465
netuid: netuid.into(),
14661466
last_update: Some(
1467-
LastUpdate::<T>::get(NetUidStorageIndex::from(netuid_index))
1467+
LastUpdate::<T>::get(netuid_index)
14681468
.into_iter()
14691469
.map(Compact::from)
14701470
.collect(),

0 commit comments

Comments
 (0)