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

Implement () for Happened #6529

Merged
1 commit merged into from
Jun 28, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions frame/support/src/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down