BurntSushi / bstr

A string type for Rust that is not required to be valid UTF-8.
Other
745 stars 51 forks source link

Display implementation doesn't respect Formatter options #171

Open glandium opened 7 months ago

glandium commented 7 months ago

Example:

use bstr::ByteSlice;

fn main() {
    println!("{:20} bar", b"foo".as_bstr());
}

(I guess width is the only option that matters for strings, though)