mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 04:37:57 +00:00
committed by
GitHub
parent
cac9d85cb3
commit
fcfb766366
@@ -301,7 +301,7 @@ pub trait PrivilegeCmp<Origin> {
|
||||
|
||||
/// Implementation of [`PrivilegeCmp`] that only checks for equal origins.
|
||||
///
|
||||
/// This means it will either return [`Origin::Equal`] or `None`.
|
||||
/// This means it will either return [`Ordering::Equal`] or `None`.
|
||||
pub struct EqualPrivilegeOnly;
|
||||
impl<Origin: PartialEq> PrivilegeCmp<Origin> for EqualPrivilegeOnly {
|
||||
fn cmp_privilege(left: &Origin, right: &Origin) -> Option<Ordering> {
|
||||
|
||||
Reference in New Issue
Block a user