Browse Source

clippy fix to allow DAOId uppercase style to avoid api breaking

Mokhtar Naamani 3 years ago
parent
commit
dbef041330
2 changed files with 4 additions and 0 deletions
  1. 2 0
      runtime-modules/storage/src/lib.rs
  2. 2 0
      runtime/src/primitives.rs

+ 2 - 0
runtime-modules/storage/src/lib.rs

@@ -25,6 +25,8 @@ pub(crate) type ContentId<T> = <T as common::StorageOwnership>::ContentId;
 pub(crate) type ChannelId<T> = <T as common::StorageOwnership>::ChannelId;
 
 // Alias for the dao id.
+// Allow DAOId alias to avoid breaking api/types names
+#[allow(clippy::upper_case_acronyms)]
 pub(crate) type DAOId<T> = <T as common::StorageOwnership>::DAOId;
 
 /// DAO object type id.

+ 2 - 0
runtime/src/primitives.rs

@@ -15,6 +15,8 @@ pub type TransactionPriority = u64;
 pub type ContentId = sp_core::H256;
 
 /// Alias for DAOId, used in various places.
+// Allow DAOId alias to avoid breaking api/types names
+#[allow(clippy::upper_case_acronyms)]
 pub type DAOId = u64;
 
 /// Alias for DataObjectTypeId, used in various places.