Closed spacemeowx2 closed 11 months ago
As a library, rz-pipe should not panic user's process.
All uses of unwrap and expect should be removed. Use error instead.
unwrap
expect
https://github.com/rizinorg/rz-pipe/blob/76e7b67456aa73770478c0161a230b2ed6420145/rust/src/rzpipe.rs#L216
https://github.com/rizinorg/rz-pipe/blob/76e7b67456aa73770478c0161a230b2ed6420145/rust/src/rzpipe.rs#L265-L272
https://github.com/rizinorg/rz-pipe/blob/76e7b67456aa73770478c0161a230b2ed6420145/rust/src/rzpipe.rs#L332-L337
https://github.com/rizinorg/rz-pipe/blob/76e7b67456aa73770478c0161a230b2ed6420145/rust/src/rzpipe.rs#L354
https://github.com/rizinorg/rz-pipe/blob/76e7b67456aa73770478c0161a230b2ed6420145/rust/src/rz.rs#L21
Pls review @XVilka / @spacemeowx2 and pardon my rust n00bness lel
@spacemeowx2 does this still happen?
As a library, rz-pipe should not panic user's process.
All uses of
unwrap
andexpect
should be removed. Use error instead.https://github.com/rizinorg/rz-pipe/blob/76e7b67456aa73770478c0161a230b2ed6420145/rust/src/rzpipe.rs#L216
https://github.com/rizinorg/rz-pipe/blob/76e7b67456aa73770478c0161a230b2ed6420145/rust/src/rzpipe.rs#L265-L272
https://github.com/rizinorg/rz-pipe/blob/76e7b67456aa73770478c0161a230b2ed6420145/rust/src/rzpipe.rs#L332-L337
https://github.com/rizinorg/rz-pipe/blob/76e7b67456aa73770478c0161a230b2ed6420145/rust/src/rzpipe.rs#L354
https://github.com/rizinorg/rz-pipe/blob/76e7b67456aa73770478c0161a230b2ed6420145/rust/src/rz.rs#L21