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

Support octal display hint #857

Merged
merged 4 commits into from
Jul 29, 2024
Merged

Support octal display hint #857

merged 4 commits into from
Jul 29, 2024

Conversation

wetheredge
Copy link
Contributor

Updated tests and docs based on the binary display hint.

@@ -17,6 +17,8 @@ fn main() -> ! {
defmt::info!("hex alt {=u8:#x}", x);
defmt::info!("HEX {=u8:X}", x);
defmt::info!("HEX alt {=u8:#X}", x);
defmt::info!("octal {=u8:o}", x);
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we add the tests at the end, to minimise the diff on the expected output file?

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh, actually, that probably isn't going to help. Never mind.

Copy link
Contributor

@jonathanpallant jonathanpallant left a comment

Choose a reason for hiding this comment

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

This looks good to me. Thank you for the PR!

@Urhengulas Urhengulas added the breaking change fix / feature / improvement involves a breaking change and needs to wait until next minor version label Jul 29, 2024
Copy link
Member

@Urhengulas Urhengulas left a comment

Choose a reason for hiding this comment

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

Looks good to me.

Please not that this is a breaking change in defmt-parser, since we add a new enum variant to a public enum. I think this is fine though, since the parser is still marked unstable and as far as I know, no one is using the parser directly, everyone is using the decoder, or defmt.

@Urhengulas Urhengulas added this pull request to the merge queue Jul 29, 2024
@Urhengulas Urhengulas removed this pull request from the merge queue due to a manual request Jul 29, 2024
@Urhengulas Urhengulas enabled auto-merge July 29, 2024 13:02
@Urhengulas Urhengulas added this pull request to the merge queue Jul 29, 2024
Merged via the queue into knurling-rs:main with commit dea6df3 Jul 29, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change fix / feature / improvement involves a breaking change and needs to wait until next minor version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants