mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 08:47:57 +00:00
Implement () for Happened (#6529)
This commit is contained in:
@@ -329,6 +329,10 @@ pub trait Happened<T> {
|
||||
fn happened(t: &T);
|
||||
}
|
||||
|
||||
impl<T> Happened<T> for () {
|
||||
fn happened(_: &T) {}
|
||||
}
|
||||
|
||||
/// A shim for placing around a storage item in order to use it as a `StoredValue`. Ideally this
|
||||
/// wouldn't be needed as `StorageValue`s should blanket implement `StoredValue`s, however this
|
||||
/// would break the ability to have custom impls of `StoredValue`. The other workaround is to
|
||||
|
||||
Reference in New Issue
Block a user