Skip to content

regression(?): Pretty debug printing now strips hyphens #652

@bergmark

Description

@bergmark

What happened?
When upgrading from uuid 0.8 to 1.2 pretty-debug-printing changed to not contain hyphens

Steps to reproduce the behavior:

fn main() {
    println!("{}", uuid::uuid!("161d93bd-bd16-4c9c-b236-2e044546f36c"));
    println!("{:?}", uuid::uuid!("161d93bd-bd16-4c9c-b236-2e044546f36c"));
    println!("{:#?}", uuid::uuid!("161d93bd-bd16-4c9c-b236-2e044546f36c"));
}

=>

161d93bd-bd16-4c9c-b236-2e044546f36c
161d93bd-bd16-4c9c-b236-2e044546f36c
161d93bdbd164c9cb2362e044546f36c

What were you expecting?

161d93bd-bd16-4c9c-b236-2e044546f36c
161d93bd-bd16-4c9c-b236-2e044546f36c
161d93bd-bd16-4c9c-b236-2e044546f36c

What's the context?

  • rustc 1.66.0 (69f9c33d7 2022-12-12)
  • uuid: 1.2.2
  • features: None

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions