sp-api: Remove invalid unsafe trait bounds (#12502)

The runtime api implementation contained invalid unsafe trait bounds. `Sync` was never correct there
and `Send` should have not been "force implemented".
This commit is contained in:
Bastian Köcher
2022-10-17 10:20:51 +02:00
committed by GitHub
parent ce4cad8b8b
commit 37538f0429
3 changed files with 4 additions and 15 deletions
@@ -535,7 +535,7 @@ impl<'a> Fold for ToClientSideDecl<'a> {
if is_core_trait {
// Add all the supertraits we want to have for `Core`.
input.supertraits = parse_quote!('static + Send + Sync);
input.supertraits = parse_quote!('static + Send);
} else {
// Add the `Core` runtime api as super trait.
let crate_ = &self.crate_;