1
0
mirror of https://github.com/rust-unofficial/awesome-rust.git synced 2025-01-03 05:10:17 +02:00

Merge branch 'master' into patch-1

This commit is contained in:
Yuta Hinokuma 2021-12-13 11:43:20 +09:00 committed by GitHub
commit bdc2e109aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 7 deletions

View File

@ -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)

View File

@ -420,7 +420,6 @@ async fn main() -> Result<(), Error> {
#[derive(Debug)]
struct ListInfo {
location: usize,
data: Vec<String>,
}
@ -436,7 +435,7 @@ async fn main() -> Result<(), Error> {
let mut last_level: u32 = 0;
let mut star_override_level: Option<u32> = 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 {