Remove PalletInfo impl for () (#8090)

This commit is contained in:
Andrew Jones
2021-02-09 16:45:59 +00:00
committed by GitHub
parent 9fbbecc195
commit ef6615ba65
-5
View File
@@ -1459,11 +1459,6 @@ pub trait PalletInfo {
fn name<P: 'static>() -> Option<&'static str>;
}
impl PalletInfo for () {
fn index<P: 'static>() -> Option<usize> { Some(0) }
fn name<P: 'static>() -> Option<&'static str> { Some("test") }
}
/// The function and pallet name of the Call.
#[derive(Clone, Eq, PartialEq, Default, RuntimeDebug)]
pub struct CallMetadata {