Skip to content

mctp-usb: Simply return the header in MctpUsbHandler::header()#46

Open
SafetyInObscurity wants to merge 1 commit intoCodeConstruct:mainfrom
SafetyInObscurity:return-type
Open

mctp-usb: Simply return the header in MctpUsbHandler::header()#46
SafetyInObscurity wants to merge 1 commit intoCodeConstruct:mainfrom
SafetyInObscurity:return-type

Conversation

@SafetyInObscurity
Copy link
Copy Markdown

Current implementation takes destination variable as a mutable argument and modifies it. It would be better for the function to simply return the header, rather than an empty Ok(()) on success.

Current implementation takes destination variable as a mutable argument and modifies it. It would be better for the function to simply return the header, rather than an empty `Ok(())` on success.

Signed-off-by: James Lee <james@codeconstruct.com.au>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant