Skip to content

MacAddr does not respect string format padding #10

@jgrund

Description

@jgrund

Consider:

format!("{:<20}", macaddr::MacAddr6::new(1,2,3,4,5,6))

This yields:

"01:02:03:04:05:06"

If we instead convert to a String first:

format!("{:<20}", macaddr::MacAddr6::new(1,2,3,4,5,6).to_string())

We get:

"01:02:03:04:05:06   "

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions