cloudevents / sdk-rust

Rust library to interact with CloudEvents
Apache License 2.0
174 stars 61 forks source link

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

Open gabriel-araujjo opened 5 months ago

gabriel-araujjo commented 5 months ago

The following code panics

use cloudevents::event::Data;

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