Skip to content

Commit 6c15ef3

Browse files
authored
Remove unnecessary Sized bound on callbacks (#165)
1 parent 3360c94 commit 6c15ef3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rclrs/src/node/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ impl Node {
263263
) -> Result<Arc<Subscription<T>>, RclReturnCode>
264264
where
265265
T: Message,
266-
F: FnMut(T) + Sized + 'static,
266+
F: FnMut(T) + 'static,
267267
{
268268
let subscription = Arc::new(Subscription::<T>::new(self, topic, qos, callback)?);
269269
self.subscriptions

rclrs/src/node/subscription.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ where
8181
) -> Result<Self, RclReturnCode>
8282
where
8383
T: Message,
84-
F: FnMut(T) + Sized + 'static,
84+
F: FnMut(T) + 'static,
8585
{
8686
// SAFETY: Getting a zero-initialized value is always safe.
8787
let mut subscription_handle = unsafe { rcl_get_zero_initialized_subscription() };

0 commit comments

Comments
 (0)