Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Nit only add predicate once
```rust
	impl<T> ::parity_scale_codec::MaxEncodedLen for Generic<T>
	where
		T: ::parity_scale_codec::MaxEncodedLen,
```
instead of
```
	impl<T> ::parity_scale_codec::MaxEncodedLen for Generic<T>
	where
		T: ::parity_scale_codec::MaxEncodedLen,
		T: ::parity_scale_codec::MaxEncodedLen,
		T: ::parity_scale_codec::MaxEncodedLen,
```
  • Loading branch information
pgherveou committed Sep 7, 2023
commit 17c4cc834bbcda48bf96d53daf4aa94e1a1f256f
1 change: 1 addition & 0 deletions derive/src/trait_bounds.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ pub fn add<N>(

codec_types
.into_iter()
.take(1)
.for_each(|ty| where_clause.predicates.push(parse_quote!(#ty : #codec_bound)));

let has_compact_bound: syn::Path = parse_quote!(#crate_path::HasCompact);
Expand Down