riscv-rust / e310x-hal

Implementation of the `embedded-hal` traits for E310x microcontrollers
17 stars 18 forks source link

fix overlapping clock ranges #27

Closed almindor closed 4 years ago

almindor commented 4 years ago

Fixes overlapping pattern warnings by doing ..=(X-1)

NOTE: I'm not 100% sure this is correct, question also remains on the upper bound, should it be inclusive or not?

Rust does not allow pattern matching with X..Y exclusive in stable yet.