Skip to content

phone-number, scale-generator: use range::contains#1036

Merged
petertseng merged 1 commit intoexercism:masterfrom
petertseng:rangecontain
Nov 21, 2020
Merged

phone-number, scale-generator: use range::contains#1036
petertseng merged 1 commit intoexercism:masterfrom
petertseng:rangecontain

Conversation

@petertseng
Copy link
Member

I'm honestly not really convinced by the phone-number one but I guess
it's one fewer mention of number_len so it's fine.

https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains

I'm honestly not really convinced by the phone-number one but I guess
it's one fewer mention of number_len so it's fine.

https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains
Copy link
Member

@coriolinus coriolinus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As you say, the phone-number one is a little weird, but might as well resolve the warning.

@petertseng petertseng merged commit 9ad579f into exercism:master Nov 21, 2020
@petertseng petertseng deleted the rangecontain branch November 21, 2020 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants