-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve rust code readability (#219)
* Reduce deep nesting and partially improve error handling Reduce deep nesting in certain cases, where there was only a single happy path anyway to make the code easier to read and less confusing. Try to improve error handling by switch elaborate matches with map_err and ?-operator * Shorten some struct constructors and switch &mut Vec to &mut [] Shortened some more struct constructors from 'field: field' to just 'field'. Change some usage from '&mut Vec<>' to '&mut []' as recommended by rust itself, if we are not using any Vec specific api --------- Co-authored-by: Lol3rrr <[email protected]>
- Loading branch information
Showing
11 changed files
with
162 additions
and
191 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.