Lokathor / tinyvec

Just, really the littlest Vec you could need. So smol.
https://docs.rs/tinyvec
Apache License 2.0
648 stars 49 forks source link

incorrect indent for dbg!(tiny_vec) #192

Open kzhui125 opened 7 months ago

kzhui125 commented 7 months ago
use tinyvec::tiny_vec;

#[derive(Debug)]
pub struct Point {
    id1: i32,
}

impl Default for Point {
    fn default() -> Self {
        Self { id1: 0 }
    }
}

fn main() {
    let arr = tiny_vec!([Point; 1] => Point { id1: 1 });
    dbg!(arr);

    let arr = vec![Point { id1: 1 }];
    dbg!(arr);
}
image
kzhui125 commented 7 months ago
let arr: TinyVec<[char; 10]> = tiny_vec!();
dbg!(arr);
let arr: Vec<char> = vec![];
dbg!(arr);