Skip to content
Snippets Groups Projects
Unverified Commit 38797604 authored by wangjj9219's avatar wangjj9219 Committed by GitHub
Browse files

add constructor for CheckOperator (#95)

parent 94891766
No related branches found
No related tags found
No related merge requests found
...@@ -145,6 +145,12 @@ impl<T: Trait> Module<T> { ...@@ -145,6 +145,12 @@ impl<T: Trait> Module<T> {
#[derive(Encode, Decode, Clone, Eq, PartialEq)] #[derive(Encode, Decode, Clone, Eq, PartialEq)]
pub struct CheckOperator<T: Trait + Send + Sync>(sp_std::marker::PhantomData<T>); pub struct CheckOperator<T: Trait + Send + Sync>(sp_std::marker::PhantomData<T>);
impl<T: Trait + Send + Sync> CheckOperator<T> {
pub fn new() -> Self {
Self(sp_std::marker::PhantomData)
}
}
impl<T: Trait + Send + Sync> sp_std::fmt::Debug for CheckOperator<T> { impl<T: Trait + Send + Sync> sp_std::fmt::Debug for CheckOperator<T> {
#[cfg(feature = "std")] #[cfg(feature = "std")]
fn fmt(&self, f: &mut sp_std::fmt::Formatter) -> sp_std::fmt::Result { fn fmt(&self, f: &mut sp_std::fmt::Formatter) -> sp_std::fmt::Result {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment