-
-
Notifications
You must be signed in to change notification settings - Fork 249
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: lots of lints and fixes (#1523)
* it is an anti-pattern for a fn to take a reference, and clone it right away. If a fn needs to own a value, a value ownership should be passed in, not cloned inside the fn. This way the caller can decide to clone something, or to pass it in as is * use &Path instead of &PathBuf (same as &str instead of &String) * use .cmp for comparison * some spelling * lots of `match` statements can be simplified * use `.is_null()` instead of comparing with the null ptr * do not impl ToString, impl Display instead for "free" ToString --------- Co-authored-by: Jubilee <[email protected]>
- Loading branch information
1 parent
e2c4ff9
commit 12842b6
Showing
43 changed files
with
240 additions
and
343 deletions.
There are no files selected for viewing
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.