Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removes unwrap #16

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Removes unwrap #16

wants to merge 1 commit into from

Conversation

sanpii
Copy link
Owner

@sanpii sanpii commented Sep 28, 2021

No description provided.

@@ -19,11 +19,11 @@ bitflags::bitflags! {
*
* Returns exit code program on success.
*/
pub fn run_command(payload: &mut std::os::raw::c_void) -> Result<i32, ()> {
pub fn run_command(payload: &mut std::os::raw::c_void) -> crate::Result<i32> {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use a type alias for Result instead of typing crate::Result every time.

@koutheir
Copy link

I left a few comments on the PR. I did not make an exhaustive review.

@sanpii sanpii force-pushed the error branch 3 times, most recently from 65d3f70 to f3d6594 Compare September 28, 2021 15:14
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.

None yet

2 participants