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

Print TypeId as a u128 for Debug #127134

Merged
merged 1 commit into from
Jun 30, 2024
Merged

Print TypeId as a u128 for Debug #127134

merged 1 commit into from
Jun 30, 2024

Commits on Jun 29, 2024

  1. Print TypeId as a u128 for Debug

    Since <rust-lang#121358>, `TypeId` is
    represented as a `(u64, u64)`. This also made the debug implementation a
    lot larger, which is especially apparent with pretty formatting.
    
    Make this less noisy by converting the inner value back to a `u128` then
    printing as a tuple struct.
    
    Current:
    
        TypeId { t: (1403077013027291752, 4518903163082958039) }
        TypeId {
            t: (
                1403077013027291752,
                4518903163082958039,
            ),
        }
    
    New:
    
        TypeId(25882202575019293479932656973818029271)
        TypeId(
            25882202575019293479932656973818029271,
        )
    tgross35 committed Jun 29, 2024
    Configuration menu
    Copy the full SHA
    682e7c1 View commit details
    Browse the repository at this point in the history