Skip to content

Printing Data panics when it holds binary data containing invalid UTF-8 sequences #229

Open
@gabriel-araujjo

Description

@gabriel-araujjo

The following code panics

use cloudevents::event::Data;

fn main() {
    println!("{}", Data::Binary(vec![0xff]));
}

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