~wezm/annotate-rust

034d15a1a135bda84f45c768a1786f1548fe5156 — Wesley Moore 1 year, 4 months ago 4488863
Annotation values are Vecs
1 files changed, 2 insertions(+), 2 deletions(-)

M src/bin/annotaterust.rs
M src/bin/annotaterust.rs => src/bin/annotaterust.rs +2 -2
@@ 30,12 30,12 @@ fn main() {
    let blobs = git::parse_ls_tree_output(&output).expect("parse");

    let mut annotations = HashMap::new();
    annotations.insert(blobs[0].object, Annotation::Markdown {
    annotations.entry(blobs[0].object).or_insert(Vec::new()).push(Annotation::Markdown {
        lineno: 1,
        title: "Title".to_string(),
        content: "content".to_string()
    });
    annotations.insert(blobs[1].object, Annotation::Link {
    annotations.entry(blobs[0].object).or_insert(Vec::new()).push(Annotation::Link {
        lineno: 1,
        colno: 0,
        len: 5,