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

Fix Default Base for Interleaved Constraints #114

Conversation

DavePearce
Copy link
Collaborator

This updates the default base for the column(s) arising from an interleaved constraint to be hexadecimal rather than decimal. This now follows the convention used in e.g. defcolumns which also defaults to hex.

This updates the default base for the column(s) arising from an
interleaved constraint to be hexadecimal rather than decimal.  This
now follows the convention used in e.g. `defcolumns` which also defaults
to hex.
@DavePearce DavePearce merged commit d7f7be0 into master Apr 10, 2024
1 check passed
@DavePearce DavePearce deleted the 112-corset-inspect-display-display-bytes-in-little-endian-order branch April 10, 2024 03:51
@@ -207,7 +207,7 @@ impl std::convert::TryInto<DisplayableColumn> for ColumnAttributes {
}
Ok(DisplayableColumn {
name: self.name,
base: self.base.get().cloned().unwrap_or(Base::Dec),
base: self.base.get().cloned().unwrap_or(Base::Hex),
Copy link
Contributor

Choose a reason for hiding this comment

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

This could be replaced by implementing Defautl for Base and using unwrap_or_default() everywhere a similar use case appears.

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.

2 participants