Skip to content

add rust lint ignore for match cmp #66

Closed
@dpaiton

Description

@dpaiton

Rust lint (clippy) suggests we make a change from

if x < y
else if x > y
else

to

match x.cmp(y)
ordering.less
ordering.greater
ordering.equal

This is a pretty controversial lint suggestion from clippy. @jalextowle and I talked about it and we both agree that the original formatting is better (more readable, doesn't require extra import). We should set a global ignore for this lint warning.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions