From 3edcc6c4a5486f97430353ab654fe81feb97f8ca Mon Sep 17 00:00:00 2001 From: Tom Parker-Shemilt Date: Thu, 9 Dec 2021 22:29:53 +0000 Subject: [PATCH 1/3] Remove some unused variables --- src/main.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 1ceea25..736bfae 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 { @@ -506,7 +505,6 @@ async fn main() -> Result<(), Error> { in_list_item = false; } list_items.push(ListInfo { - location: range.start, data: Vec::new(), }); } From 56cfef518213eb223c34bd33180ece024de773ef Mon Sep 17 00:00:00 2001 From: Tom Parker-Shemilt Date: Thu, 9 Dec 2021 22:31:43 +0000 Subject: [PATCH 2/3] Fix databend build path --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9a95bd0..e9f95fb 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) From 5cf5f92a8d35e7631fdc41704f9f77ae0fd88b8e Mon Sep 17 00:00:00 2001 From: Tom Parker-Shemilt Date: Thu, 9 Dec 2021 22:32:54 +0000 Subject: [PATCH 3/3] Fix code format --- src/main.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 736bfae..0bb26c3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -504,9 +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 { - data: Vec::new(), - }); + list_items.push(ListInfo { data: Vec::new() }); } Tag::Item => { if in_list_item && list_item.len() > 0 {