Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

incorrect indent for dbg!(tiny_vec) #192

Open
kzhui125 opened this issue Mar 14, 2024 · 1 comment
Open

incorrect indent for dbg!(tiny_vec) #192

kzhui125 opened this issue Mar 14, 2024 · 1 comment

Comments

@kzhui125
Copy link

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
Copy link
Author

let arr: TinyVec<[char; 10]> = tiny_vec!();
dbg!(arr);
let arr: Vec<char> = vec![];
dbg!(arr);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant