Unverified Commit 1601b967 authored by Hero Bird's avatar Hero Bird Committed by GitHub
Browse files

Use Flush derives and generally update the Flush trait (#269)

* [core] add core/derive crate to add derive macro for Flush

* [core/derive] change license from GPL-3.0 to APACHE-2.0

* [core/derive] implement Flush and AllocateUsing derives based on synstructure

* [core] re-export AllocateUsing and Flush derives from within core

* [core/derive] fix AllocateUsing derive impl

* [core/derive] adjust AllocateUsing tests

* [core/derive] apply cargo fmt

* [core/derive] add test::utils and improve AllocateUsing tests

* [core/derive] add explanation docs

* [core/derive] add doc for a hack

* [core/derive] forbid deriving empty enums for Flush

* [core/derive] update compile tests

* [core] remove derive crate feature

* [core/derive] remove `extern crate ink_core` edition 2015 compat

* [core, examples, lang] update Flush impls

* [core] apply rustfmt

* [core] simplify Flush impl for StashHeader

* [core] remove derive crate feature

* [examples] fix clippy warning about Flush in delegator
parent d3b091d4
Pipeline #70473 passed with stages
in 15 minutes and 36 seconds
Supports Markdown
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