Skip to content

Commit

Permalink
primitives: Remove unneeded bounds on generic params
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
  • Loading branch information
lexnv committed Mar 30, 2023
1 parent cf78a71 commit 5178e38
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions primitives/api/proc-macro/src/runtime_metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,6 @@ pub fn generate_decl_runtime_metadata(decl: &ItemTrait, crate_: &TokenStream) ->
let syn::GenericParam::Type(ty) = generic_param else {
continue
};

// `scale_info::meta_type` requires `T: ?Sized + TypeInfo + 'static` bounds.
ty.bounds.push(parse_quote!(#crate_::scale_info::TypeInfo));
ty.bounds.push(parse_quote!('static));
// Default type parameters are not allowed in functions.
ty.eq_token = None;
ty.default = None;
Expand Down

0 comments on commit 5178e38

Please sign in to comment.