Skip to content

Fix formatting of constant tables#87

Open
cceckman wants to merge 3 commits intopaholg:mainfrom
cceckman:typos
Open

Fix formatting of constant tables#87
cceckman wants to merge 3 commits intopaholg:mainfrom
cceckman:typos

Conversation

@cceckman
Copy link

The newline code removed here generated an extra | character at the break between constants-for-base-units and constants-for-derived-units. This corrupted the display in the rendered table; all the derived-unit constants were not rendered into the table, but rendered as text.

Don't print the extra |. With this, all the constants show up in one table.

Before:

image

After:

image

cceckman added 3 commits June 15, 2025 11:21
The `newline` code removed here generated an extra `|` character at the
break between constants-for-base-units and constants-for-derived-units.
This corrupted the display in the rendered table; all the derived-unit
constants were not rendered into the table, but rendered as text.

Don't print the extra `|`. With this, all the constants show up in one
table.
As of 1.66, Clippy lints on `"{}", d` instead of `"{d}"`.
However, this behavior is only available as of 1.58-
which postdates the 2021 edition (launched in 1.56).

Ignore the lint, to maintain a lower minimum supported Rust version.
@cceckman
Copy link
Author

Added some commits to fix the lints that Clippy turned up.

The "uninlined variables" one would more properly be addressed by setting an MSRV; working on a separate PR for that.

@paholg
Copy link
Owner

paholg commented Jun 15, 2025

CI hasn't been run in a while; I'm not surprised it needs some love. I appreciate any passes you take at it, but don't feel you need to to get this merged.

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