Skip to content

Commit 8f60d28

Browse files
committed
mctp-estack: Fix lifetime for MctpControl
MctpControl needs updating for the new Router lifetime. Fixes: dac69c4 ("mctp-estack: Separate lifetimes for Router") Signed-off-by: Matt Johnston <[email protected]>
1 parent 291f562 commit 8f60d28

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mctp-estack/src/control.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -424,16 +424,16 @@ where
424424
}
425425

426426
/// A Control Message handler.
427-
pub struct MctpControl<'a> {
427+
pub struct MctpControl<'g, 'r> {
428428
rsp_buf: [u8; MAX_MSG_SIZE],
429429
types: heapless::Vec<MsgType, MAX_MSG_TYPES>,
430430
uuid: Option<Uuid>,
431-
router: &'a Router<'a>,
431+
router: &'g Router<'r>,
432432
}
433433

434-
impl<'a> MctpControl<'a> {
434+
impl<'g, 'r> MctpControl<'g, 'r> {
435435
/// Create a new instance.
436-
pub fn new(router: &'a Router<'a>) -> Self {
436+
pub fn new(router: &'g Router<'r>) -> Self {
437437
Self {
438438
rsp_buf: [0u8; MAX_MSG_SIZE],
439439
types: heapless::Vec::new(),

0 commit comments

Comments
 (0)