Skip to content
Commit 77489c31 authored by Amar Singh's avatar Amar Singh Committed by GitHub
Browse files

Improve errors for `generate_solution_type` macro (#9553)



* add more errors for check attributes in npos elections solution type

* revert local env

* return Ok false if there are no attributes

* fmt

* Update primitives/npos-elections/solution-type/src/lib.rs

Co-authored-by: default avatarSquirrel <[email protected]>

* Update primitives/npos-elections/solution-type/src/lib.rs

Co-authored-by: default avatarGuillaume Thiolliere <[email protected]>

* Update primitives/npos-elections/solution-type/src/lib.rs

Co-authored-by: default avatarGuillaume Thiolliere <[email protected]>

* Update primitives/npos-elections/solution-type/src/lib.rs

* improve span by giving extra attribute, nightly fmt

* fix test to test new error msg

Co-authored-by: default avatarSquirrel <[email protected]>
Co-authored-by: default avatarGuillaume Thiolliere <[email protected]>
parent 0f1896e7
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