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

core: Remove debug information from Error #83

Merged
merged 1 commit into from
Oct 15, 2024
Merged

Conversation

robin-nitrokey
Copy link
Member

If unwrap or expect is used on a Result<_, Error>, the Debug implementation is not always optimized out. This leads to a significant increase of the binary size. As a short-term fix, this patch changes the Debug implementation to always returns a static string.

If unwrap or expect is used on a Result<_, Error>, the Debug
implementation is not always optimized out.  This leads to a significant
increase of the binary size. As a short-term fix, this patch changes the
Debug implementation to always returns a static string.
@robin-nitrokey robin-nitrokey merged commit bea4641 into main Oct 15, 2024
8 checks passed
@robin-nitrokey robin-nitrokey deleted the path-debug branch October 15, 2024 12:07
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