rust-embedded / svd2rust

Generate Rust register maps (`struct`s) from SVD files
Apache License 2.0
682 stars 149 forks source link

Not cast if unnecessary #682

Closed duskmoon314 closed 1 year ago

duskmoon314 commented 1 year ago

In the previous PR #675, some cases of unnecessary casting are eliminated. However, if there is a big field (bigger than 16) with offset, there is still unnecessary generated casting. This PR fixes this case and adjusts the code according to clippy.

rust-highfive commented 1 year ago

r? @Emilgardis

(rust-highfive has picked a reviewer for you, use r? to override)

burrbull commented 1 year ago

update changelog, please

duskmoon314 commented 1 year ago

I just updated CHANGELOG and squashed commits.

burrbull commented 1 year ago

bors r+

bors[bot] commented 1 year ago

Build succeeded: