Skip to content
Snippets Groups Projects
Commit 749cc1fd authored by chenwei's avatar chenwei Committed by GitHub
Browse files

Implement `()` for `Happened` (#6529)

parent f1bd59c6
No related merge requests found
......@@ -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
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment