Remove bounds on Config trait that aren't strictly necessary (#389)

* Use Derivative to skip bounds on T when they aren't necessary, and remove unnecessary bounds on Config

* loosen a couple more derive bounds

* Use PhantomDataSendSync to avoid accidentally removing Send+Sync bounds
This commit is contained in:
James Wilson
2022-01-13 16:07:27 +00:00
committed by GitHub
parent d1e2985ce8
commit 96fe1d61a9
8 changed files with 179 additions and 99 deletions
+1
View File
@@ -39,6 +39,7 @@ sp-runtime = { git = "https://github.com/paritytech/substrate/", branch = "maste
sp-version = { package = "sp-version", git = "https://github.com/paritytech/substrate/", branch = "master" }
frame-metadata = "14.0.0"
derivative = "2.2.0"
[dev-dependencies]
sp-arithmetic = { git = "https://github.com/paritytech/substrate/", branch = "master", default-features = false }