diff --git a/README.md b/README.md index 12131b8..301882e 100644 --- a/README.md +++ b/README.md @@ -179,7 +179,7 @@ See also [Rust — Production](https://www.rust-lang.org/production) organizatio ### Database -* [Databend](https://github.com/datafuselabs/databend) - A Modern Real-Time Data Processing & Analytics DBMS with Cloud-Native Architecture [![Build](https://github.com/datafuselabs/databend/actions/workflows/databend-build.yml/badge.svg)](https://github.com/datafuselabs/databend/actions/workflows/databend-build.yml) +* [Databend](https://github.com/datafuselabs/databend) - A Modern Real-Time Data Processing & Analytics DBMS with Cloud-Native Architecture [![Build](https://github.com/datafuselabs/databend/actions/workflows/unit-tests.yml/badge.svg)](https://github.com/datafuselabs/databend/actions/workflows/unit-tests.yml) * [indradb](https://crates.io/crates/indradb) — Rust based graph database [![build badge](https://api.travis-ci.org/indradb/indradb.svg?branch=master)](https://travis-ci.org/indradb/indradb) * [Lucid](https://github.com/lucid-kv/lucid) — High performance and distributed KV store accessible through a HTTP API. [![Build Status](https://github.com/lucid-kv/lucid/workflows/Lucid/badge.svg?branch=master)](https://github.com/lucid-kv/lucid/actions?workflow=Lucid) * [Materialize](https://github.com/MaterializeInc/materialize) - Streaming SQL database powered by Timely Dataflow :heavy_dollar_sign: [![Build status](https://badge.buildkite.com/97d6604e015bf633d1c2a12d166bb46f3b43a927d3952c999a.svg?branch=main)](https://buildkite.com/materialize/tests) diff --git a/src/main.rs b/src/main.rs index 1ceea25..0bb26c3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -420,7 +420,6 @@ async fn main() -> Result<(), Error> { #[derive(Debug)] struct ListInfo { - location: usize, data: Vec, } @@ -436,7 +435,7 @@ async fn main() -> Result<(), Error> { let mut last_level: u32 = 0; let mut star_override_level: Option = None; - for (event, range) in parser.into_offset_iter() { + for (event, _range) in parser.into_offset_iter() { match event { Event::Start(tag) => { match tag { @@ -505,10 +504,7 @@ async fn main() -> Result<(), Error> { list_items.last_mut().unwrap().data.push(list_item.clone()); in_list_item = false; } - list_items.push(ListInfo { - location: range.start, - data: Vec::new(), - }); + list_items.push(ListInfo { data: Vec::new() }); } Tag::Item => { if in_list_item && list_item.len() > 0 {