Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add no_alloc compatibility #3

Merged
merged 6 commits into from
Dec 18, 2023

Conversation

ayushagrawal2
Copy link
Contributor

Should fix #2 -- I haven't run into any issues yet in my usage over the past month.

Copy link
Member

@marius-meissner marius-meissner left a comment

Choose a reason for hiding this comment

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

Thank you! Looks good, just one minor suggestion.
Seems QA action pipeline is currently not triggered by PR.
Could you please adjust

to

on:
  push:
  pull_request:

src/expander.rs Outdated
),
Bank::Bank0 => self
.bus
.write(self.address, &[COMMAND_CONF_0, self.configuration_0.as_value().clone()]),
Copy link
Member

Choose a reason for hiding this comment

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

As u8 implements the Copy trait, no cloning is required, as also suggested by Clippy.
Please try to dereference/copy instead:

*self.configuration_0.as_value()

This also applies to lines 342, 351, 354, 363 and 366.

@ayushagrawal2
Copy link
Contributor Author

Thanks for the feedback! Let me know if any further changes are needed

@ayushagrawal2 ayushagrawal2 changed the title Fix no_std support Add no_alloc compatibility Dec 12, 2023
@marius-meissner
Copy link
Member

LGTM

@marius-meissner marius-meissner merged commit 904e7a3 into atlas-aero:main Dec 18, 2023
21 checks passed
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.

no_alloc not supported
2 participants