Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 99ee2d7

Browse files
authored
Implement () for Happened (#6529)
1 parent 0a91a5f commit 99ee2d7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

frame/support/src/traits.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,10 @@ pub trait Happened<T> {
329329
fn happened(t: &T);
330330
}
331331

332+
impl<T> Happened<T> for () {
333+
fn happened(_: &T) {}
334+
}
335+
332336
/// A shim for placing around a storage item in order to use it as a `StoredValue`. Ideally this
333337
/// wouldn't be needed as `StorageValue`s should blanket implement `StoredValue`s, however this
334338
/// would break the ability to have custom impls of `StoredValue`. The other workaround is to

0 commit comments

Comments
 (0)