Skip to content

Commit 19ddf8d

Browse files
authored
Add ?Sized bound to DelegateComponent's Name parameter (#147)
1 parent a0d9519 commit 19ddf8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/cgp-component/src/traits/delegate_component.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@
4343
message = "{Self} does not contain any DelegateComponent entry for {Name}",
4444
note = "You might want to implement the provider trait for {Name} on {Self}"
4545
)]
46-
pub trait DelegateComponent<Name> {
46+
pub trait DelegateComponent<Name: ?Sized> {
4747
type Delegate;
4848
}

0 commit comments

Comments
 (0)