Skip to content

Add missing Debug implementations.#67

Open
reitermarkus wants to merge 1 commit intorafalh:masterfrom
reitermarkus:debug
Open

Add missing Debug implementations.#67
reitermarkus wants to merge 1 commit intorafalh:masterfrom
reitermarkus:debug

Conversation

@reitermarkus
Copy link
Copy Markdown
Contributor

@reitermarkus reitermarkus commented May 31, 2022

Regarding #65 (comment), I'm generally in favour of debuggability over compile time since this seems like a micro-optimization at this scale.

I mainly needed this while debugging this crate itself, but I still think having Debug for all public items in a crate is useful.

@reitermarkus reitermarkus mentioned this pull request May 31, 2022
Copy link
Copy Markdown
Owner

@rafalh rafalh left a comment

Choose a reason for hiding this comment

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

I did some tests on my local system and I could not find a noticeable change in compile time (release build) or executable size (examples from this repo) so I am willing to merge it. But I'd like to see an explanation for MSRV change

run_tests: true
# Minimal supported rustc version
- rust_version: 1.46.0
- rust_version: 1.47.0
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

why change to MSRV?

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.

Deriving Debug for fixed-sized arrays needs 1.47.

Copy link
Copy Markdown
Contributor Author

@reitermarkus reitermarkus Nov 5, 2022

Choose a reason for hiding this comment

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

Specifically the big [u8; 448] array in BootSector.

@reitermarkus reitermarkus requested a review from rafalh November 13, 2022 21:32
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