Skip to content

clippy fixes#78

Open
robamu wants to merge 2 commits intorust-embedded-community:masterfrom
robamu:clippy-fixes
Open

clippy fixes#78
robamu wants to merge 2 commits intorust-embedded-community:masterfrom
robamu:clippy-fixes

Conversation

@robamu
Copy link
Copy Markdown
Contributor

@robamu robamu commented Mar 27, 2026

No description provided.

src/iter.rs Outdated
let mem_start = self.base_address;
let mem_end = self.base_address + self.memory.len() as u32;
while let Some(region) = self.regions.next() {
for region in self.regions.by_ref() {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
for region in self.regions.by_ref() {
for region in self.regions.by_ref() {

Formatting looks off?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yes ,need to re-run cargo fmt

return Err(NorFlashErrorKind::OutOfBounds);
}
if offset % align != 0 || length % align != 0 {
if !offset.is_multiple_of(align) || !length.is_multiple_of(align) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I love this new API :)

Copy link
Copy Markdown
Contributor Author

@robamu robamu Mar 27, 2026

Choose a reason for hiding this comment

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

requires rust MSRV 1.87 though. Do you think the MSRV bump is okay for this PR as well?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm fine with it, but I'm not the primary maintainer here. Thoughts @diondokter ?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Let's just do it yeah

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.

3 participants