mirror of https://github.com/aya-rs/aya
aya-tool: remove redundant let binding in generate function
Removed the unnecessary `let () = ` pattern when calling write_all in the generate function. The pattern matching was redundant since write_all returns () and we're already using unwrap() to handle errors. This simplifies the code while maintaining the same functionality. Signed-off-by: Xiaobo Liu <cppcoffee@gmail.com>reviewable/pr1308/r1
parent
44ec978bd3
commit
9d8db7c172
Loading…
Reference in New Issue