[INFO] cloning repository https://github.com/xumin1996/docx-tool [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/xumin1996/docx-tool" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxumin1996%2Fdocx-tool", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxumin1996%2Fdocx-tool'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6b4dc914dcd8021651eab555f1ff8096cef82a87 [INFO] building xumin1996/docx-tool against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxumin1996%2Fdocx-tool" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/xumin1996/docx-tool [INFO] finished tweaking git repo https://github.com/xumin1996/docx-tool [INFO] tweaked toml for git repo https://github.com/xumin1996/docx-tool written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/xumin1996/docx-tool on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/xumin1996/docx-tool already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded gluesql v0.17.0 [INFO] [stderr] Downloaded gluesql-utils v0.17.0 [INFO] [stderr] Downloaded num-order v1.2.0 [INFO] [stderr] Downloaded docx-handlebars v0.2.4 [INFO] [stderr] Downloaded derive_utils v0.11.2 [INFO] [stderr] Downloaded ureq-proto v0.4.2 [INFO] [stderr] Downloaded futures-enum v0.1.17 [INFO] [stderr] Downloaded ureq v3.0.12 [INFO] [stderr] Downloaded num-modular v0.6.1 [INFO] [stderr] Downloaded gluesql-core v0.17.0 [INFO] [stderr] Downloaded iter-enum v1.2.0 [INFO] [stderr] Downloaded bigdecimal v0.4.8 [INFO] [stderr] Downloaded rust_decimal v1.37.2 [INFO] [stderr] Downloaded docx-rs v0.4.18 [INFO] [stderr] Downloaded handlebars v6.3.2 [INFO] [stderr] Downloaded sqlparser v0.52.0 [INFO] [stderr] Downloaded quick-xml v0.38.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3f7a3e5746af03de590651323cf8a5894ae312043fab22e0e0f38c2b0c1d7f8d [INFO] running `Command { std: "docker" "start" "-a" "3f7a3e5746af03de590651323cf8a5894ae312043fab22e0e0f38c2b0c1d7f8d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3f7a3e5746af03de590651323cf8a5894ae312043fab22e0e0f38c2b0c1d7f8d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3f7a3e5746af03de590651323cf8a5894ae312043fab22e0e0f38c2b0c1d7f8d", kill_on_drop: false }` [INFO] [stdout] 3f7a3e5746af03de590651323cf8a5894ae312043fab22e0e0f38c2b0c1d7f8d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a4f26ffccdebe0524d1de1d99addbb017198c80392e1da07cecc98860b3588d9 [INFO] running `Command { std: "docker" "start" "-a" "a4f26ffccdebe0524d1de1d99addbb017198c80392e1da07cecc98860b3588d9", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling bumpalo v3.19.0 [INFO] [stderr] Compiling zlib-rs v0.5.1 [INFO] [stderr] Compiling syn v2.0.101 [INFO] [stderr] Compiling miniz_oxide v0.8.8 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.100 [INFO] [stderr] Compiling cc v1.2.31 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling serde_json v1.0.142 [INFO] [stderr] Compiling ucd-trie v0.1.7 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling bigdecimal v0.4.8 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling toml v0.5.11 [INFO] [stderr] Compiling im-rc v15.1.0 [INFO] [stderr] Compiling rust_decimal v1.37.2 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand_xoshiro v0.6.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling uuid v1.17.0 [INFO] [stderr] Compiling find-crate v0.6.3 [INFO] [stderr] Compiling anstyle-query v1.1.3 [INFO] [stderr] Compiling num-modular v0.6.1 [INFO] [stderr] Compiling hashbrown v0.15.4 [INFO] [stderr] Compiling rustls v0.23.31 [INFO] [stderr] Compiling arrayvec v0.7.6 [INFO] [stderr] Compiling anstream v0.6.19 [INFO] [stderr] Compiling gif v0.13.1 [INFO] [stderr] Compiling http v1.3.1 [INFO] [stderr] Compiling indexmap v2.10.0 [INFO] [stderr] Compiling num-order v1.2.0 [INFO] [stderr] Compiling derive_utils v0.11.2 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling zopfli v0.8.2 [INFO] [stderr] Compiling webpki-roots v1.0.1 [INFO] [stderr] Compiling bytemuck v1.23.0 [INFO] [stderr] Compiling libz-rs-sys v0.5.1 [INFO] [stderr] Compiling flate2 v1.1.1 [INFO] [stderr] Compiling clap_builder v4.5.42 [INFO] [stderr] Compiling webpki-roots v0.26.11 [INFO] [stderr] Compiling ureq-proto v0.4.2 [INFO] [stderr] Compiling futures-enum v0.1.17 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.100 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling derive_utils v0.15.0 [INFO] [stderr] Compiling tiff v0.9.1 [INFO] [stderr] Compiling png v0.17.16 [INFO] [stderr] Compiling zip v4.3.0 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.100 [INFO] [stderr] Compiling rustls-webpki v0.103.4 [INFO] [stderr] Compiling image v0.24.9 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.100 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Compiling wasm-bindgen v0.2.100 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling derive_builder_core v0.20.2 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling pest v2.8.1 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling derive_builder_macro v0.20.2 [INFO] [stderr] Compiling derive_builder v0.20.2 [INFO] [stderr] Compiling pin-project v1.1.10 [INFO] [stderr] Compiling js-sys v0.3.77 [INFO] [stderr] Compiling strum_macros v0.25.3 [INFO] [stderr] Compiling pest_meta v2.8.1 [INFO] [stderr] Compiling iter-enum v1.2.0 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling async-recursion v1.1.1 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling console_error_panic_hook v0.1.7 [INFO] [stderr] Compiling pest_generator v2.8.1 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling zip v0.6.6 [INFO] [stderr] Compiling gluesql-utils v0.17.0 [INFO] [stderr] Compiling rustls-pemfile v2.2.0 [INFO] [stderr] Compiling quick-xml v0.38.1 [INFO] [stderr] Compiling pest_derive v2.8.1 [INFO] [stderr] Compiling xml-rs v0.8.26 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling clap v4.5.42 [INFO] [stderr] Compiling web-sys v0.3.77 [INFO] [stderr] Compiling ordered-float v4.6.0 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling sqlparser v0.52.0 [INFO] [stderr] Compiling handlebars v6.3.2 [INFO] [stderr] Compiling docx-rs v0.4.18 [INFO] [stderr] Compiling ureq v3.0.12 [INFO] [stderr] Compiling docx-handlebars v0.2.4 [INFO] [stderr] Compiling gluesql-core v0.17.0 [INFO] [stderr] Compiling gluesql v0.17.0 [INFO] [stderr] Compiling docx-tool v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `collections::HashMap` and `str::FromStr` [INFO] [stdout] --> src/sql_parser/mod.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, str::FromStr}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DocumentChild`, `Docx`, `Justification`, `TableAlignmentType`, `TableChild`, `WidthType`, and `read_docx` [INFO] [stdout] --> src/sql_parser/mod.rs:5:15 [INFO] [stdout] | [INFO] [stdout] 5 | Document, DocumentChild, Docx, Justification, TableAlignmentType, TableChild, WidthType, [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] 6 | read_docx, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DataType`, `Value`, `ast::ColumnDef`, and `error::FetchError` [INFO] [stdout] --> src/sql_parser/mod.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | ast::ColumnDef, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 12 | data::{Schema, SchemaParseError, Value}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 13 | error::FetchError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | prelude::{DataType, Error, Key, Result}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Sha256` [INFO] [stdout] --> src/sql_parser/mod.rs:21:20 [INFO] [stdout] | [INFO] [stdout] 21 | use sha2::{Digest, Sha256}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> src/sql_parser/mod.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `async_trait::async_trait` [INFO] [stdout] --> src/sql_parser/tables.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Docx`, `Justification`, and `read_docx` [INFO] [stdout] --> src/sql_parser/tables.rs:5:42 [INFO] [stdout] | [INFO] [stdout] 5 | BorderType, Document, DocumentChild, Docx, Justification, TableAlignmentType, TableBorder, [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] 6 | TableBorderPosition, TableChild, TableProperty, WidthType, read_docx, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AlterTable`, `CustomFunctionMut`, `CustomFunction`, `Error`, `IndexMut`, `Index`, `Metadata`, `SchemaParseError`, `StoreMut`, `Transaction`, and `error::FetchError` [INFO] [stdout] --> src/sql_parser/tables.rs:12:24 [INFO] [stdout] | [INFO] [stdout] 12 | data::{Schema, SchemaParseError, Value}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | error::FetchError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | store::{ [INFO] [stdout] 15 | AlterTable, CustomFunction, CustomFunctionMut, DataRow, Index, IndexMut, Metadata, [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^ ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] 16 | RowIter, Store, StoreMut, Transaction, [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | prelude::{DataType, Error, Key, Result}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `iter` [INFO] [stdout] --> src/sql_parser/cell.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, iter, str::FromStr}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `async_trait::async_trait` [INFO] [stdout] --> src/sql_parser/cell.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Docx`, `Justification`, `Paragraph`, `TableAlignmentType`, `border_position`, and `read_docx` [INFO] [stdout] --> src/sql_parser/cell.rs:5:42 [INFO] [stdout] | [INFO] [stdout] 5 | BorderType, Document, DocumentChild, Docx, Justification, Paragraph, ParagraphChild, RunChild, [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] 6 | TableAlignmentType, TableCellBorder, TableCellBorderPosition, TableCellContent, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 7 | TableCellProperty, TableChild, TableRowChild, WidthType, border_position, read_docx, [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AlterTable`, `CustomFunctionMut`, `CustomFunction`, `Error`, `IndexMut`, `Index`, `Metadata`, `SchemaParseError`, `StoreMut`, `Transaction`, and `error::FetchError` [INFO] [stdout] --> src/sql_parser/cell.rs:13:24 [INFO] [stdout] | [INFO] [stdout] 13 | data::{Schema, SchemaParseError, Value}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | error::FetchError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 15 | store::{ [INFO] [stdout] 16 | AlterTable, CustomFunction, CustomFunctionMut, DataRow, Index, IndexMut, Metadata, [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^ ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] 17 | RowIter, Store, StoreMut, Transaction, [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | prelude::{DataType, Error, Key, Result}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/sql_parser/tables.rs:179:28 [INFO] [stdout] | [INFO] [stdout] 179 | if let TableChild::TableRow(table_row) = item { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pre_width` [INFO] [stdout] --> src/sql_parser/tables.rs:314:45 [INFO] [stdout] | [INFO] [stdout] 314 | ... let pre_width = property_value [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pre_width` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/sql_parser/cell.rs:168:24 [INFO] [stdout] | [INFO] [stdout] 168 | if let TableChild::TableRow(table_row) = row { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/sql_parser/cell.rs:170:32 [INFO] [stdout] | [INFO] [stdout] 170 | ... if let TableRowChild::TableCell(table_cell) = cell { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/sql_parser/cell.rs:313:24 [INFO] [stdout] | [INFO] [stdout] 313 | if let TableChild::TableRow(table_row) = row { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pre_width` [INFO] [stdout] --> src/sql_parser/cell.rs:334:57 [INFO] [stdout] | [INFO] [stdout] 334 | ... let pre_width = property_value [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pre_width` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Store` [INFO] [stdout] --> src/sql_parser/tables.rs:16:22 [INFO] [stdout] | [INFO] [stdout] 16 | RowIter, Store, StoreMut, Transaction, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Store` [INFO] [stdout] --> src/sql_parser/cell.rs:17:22 [INFO] [stdout] | [INFO] [stdout] 17 | RowIter, Store, StoreMut, Transaction, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Digest` [INFO] [stdout] --> src/sql_parser/mod.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | use sha2::{Digest, Sha256}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StreamExt` [INFO] [stdout] --> src/sql_parser/mod.rs:8:29 [INFO] [stdout] | [INFO] [stdout] 8 | use futures::stream::{self, StreamExt}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/sql_parser/mod.rs:34:22 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn new(docx: &mut Document) -> DocxDb { [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 34 | pub fn new(docx: &mut Document) -> DocxDb<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rowIter` should have a snake case name [INFO] [stdout] --> src/sql_parser/tables.rs:149:23 [INFO] [stdout] | [INFO] [stdout] 149 | if let Ok(mut rowIter) = self.scan_data(docx).await { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `row_iter` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rowIter` should have a snake case name [INFO] [stdout] --> src/sql_parser/cell.rs:142:23 [INFO] [stdout] | [INFO] [stdout] 142 | if let Ok(mut rowIter) = self.scan_data(docx).await { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `row_iter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bytes::Bytes` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use bytes::Bytes; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ref_` [INFO] [stdout] --> src/main.rs:69:53 [INFO] [stdout] | [INFO] [stdout] 69 | ... if let SchemaRef::Ref { ref_, original_ref } = schema { [INFO] [stdout] | ^^^^ help: try ignoring the field: `ref_: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `description` [INFO] [stdout] --> src/main.rs:108:25 [INFO] [stdout] | [INFO] [stdout] 108 | let description = response.description.clone(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_description` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ref_` [INFO] [stdout] --> src/main.rs:110:49 [INFO] [stdout] | [INFO] [stdout] 110 | if let SchemaRef::Ref { ref_, original_ref } = schema { [INFO] [stdout] | ^^^^ help: try ignoring the field: `ref_: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `basePath` should have a snake case name [INFO] [stdout] --> src/main.rs:291:9 [INFO] [stdout] | [INFO] [stdout] 291 | pub basePath: Option, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `base_path` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `securityDefinitions` should have a snake case name [INFO] [stdout] --> src/main.rs:294:9 [INFO] [stdout] | [INFO] [stdout] 294 | pub securityDefinitions: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `security_definitions` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3m 19s [INFO] running `Command { std: "docker" "inspect" "a4f26ffccdebe0524d1de1d99addbb017198c80392e1da07cecc98860b3588d9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a4f26ffccdebe0524d1de1d99addbb017198c80392e1da07cecc98860b3588d9", kill_on_drop: false }` [INFO] [stdout] a4f26ffccdebe0524d1de1d99addbb017198c80392e1da07cecc98860b3588d9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 126eb3a21a423a6125d6fe346a5ebc23b50fcc3fc7b5a0bf7df53dcdf798bf11 [INFO] running `Command { std: "docker" "start" "-a" "126eb3a21a423a6125d6fe346a5ebc23b50fcc3fc7b5a0bf7df53dcdf798bf11", kill_on_drop: false }` [INFO] [stdout] warning: unused imports: `collections::HashMap` and `str::FromStr` [INFO] [stdout] --> src/sql_parser/mod.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, str::FromStr}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DocumentChild`, `Docx`, `Justification`, `TableAlignmentType`, `TableChild`, `WidthType`, and `read_docx` [INFO] [stdout] --> src/sql_parser/mod.rs:5:15 [INFO] [stdout] | [INFO] [stdout] 5 | Document, DocumentChild, Docx, Justification, TableAlignmentType, TableChild, WidthType, [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] 6 | read_docx, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DataType`, `Value`, `ast::ColumnDef`, and `error::FetchError` [INFO] [stdout] --> src/sql_parser/mod.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | ast::ColumnDef, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 12 | data::{Schema, SchemaParseError, Value}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 13 | error::FetchError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | prelude::{DataType, Error, Key, Result}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Sha256` [INFO] [stdout] --> src/sql_parser/mod.rs:21:20 [INFO] [stdout] | [INFO] [stdout] 21 | use sha2::{Digest, Sha256}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> src/sql_parser/mod.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `async_trait::async_trait` [INFO] [stdout] --> src/sql_parser/tables.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Docx`, `Justification`, and `read_docx` [INFO] [stdout] --> src/sql_parser/tables.rs:5:42 [INFO] [stdout] | [INFO] [stdout] 5 | BorderType, Document, DocumentChild, Docx, Justification, TableAlignmentType, TableBorder, [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] 6 | TableBorderPosition, TableChild, TableProperty, WidthType, read_docx, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AlterTable`, `CustomFunctionMut`, `CustomFunction`, `Error`, `IndexMut`, `Index`, `Metadata`, `SchemaParseError`, `StoreMut`, `Transaction`, and `error::FetchError` [INFO] [stdout] --> src/sql_parser/tables.rs:12:24 [INFO] [stdout] | [INFO] [stdout] 12 | data::{Schema, SchemaParseError, Value}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | error::FetchError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | store::{ [INFO] [stdout] 15 | AlterTable, CustomFunction, CustomFunctionMut, DataRow, Index, IndexMut, Metadata, [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^ ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] 16 | RowIter, Store, StoreMut, Transaction, [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | prelude::{DataType, Error, Key, Result}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `iter` [INFO] [stdout] --> src/sql_parser/cell.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, iter, str::FromStr}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `async_trait::async_trait` [INFO] [stdout] --> src/sql_parser/cell.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Docx`, `Justification`, `Paragraph`, `TableAlignmentType`, `border_position`, and `read_docx` [INFO] [stdout] --> src/sql_parser/cell.rs:5:42 [INFO] [stdout] | [INFO] [stdout] 5 | BorderType, Document, DocumentChild, Docx, Justification, Paragraph, ParagraphChild, RunChild, [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] 6 | TableAlignmentType, TableCellBorder, TableCellBorderPosition, TableCellContent, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 7 | TableCellProperty, TableChild, TableRowChild, WidthType, border_position, read_docx, [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AlterTable`, `CustomFunctionMut`, `CustomFunction`, `Error`, `IndexMut`, `Index`, `Metadata`, `SchemaParseError`, `StoreMut`, `Transaction`, and `error::FetchError` [INFO] [stdout] --> src/sql_parser/cell.rs:13:24 [INFO] [stdout] | [INFO] [stdout] 13 | data::{Schema, SchemaParseError, Value}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | error::FetchError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 15 | store::{ [INFO] [stdout] 16 | AlterTable, CustomFunction, CustomFunctionMut, DataRow, Index, IndexMut, Metadata, [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^ ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] 17 | RowIter, Store, StoreMut, Transaction, [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | prelude::{DataType, Error, Key, Result}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/sql_parser/tables.rs:179:28 [INFO] [stdout] | [INFO] [stdout] 179 | if let TableChild::TableRow(table_row) = item { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pre_width` [INFO] [stdout] --> src/sql_parser/tables.rs:314:45 [INFO] [stdout] | [INFO] [stdout] 314 | ... let pre_width = property_value [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pre_width` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/sql_parser/cell.rs:168:24 [INFO] [stdout] | [INFO] [stdout] 168 | if let TableChild::TableRow(table_row) = row { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/sql_parser/cell.rs:170:32 [INFO] [stdout] | [INFO] [stdout] 170 | ... if let TableRowChild::TableCell(table_cell) = cell { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/sql_parser/cell.rs:313:24 [INFO] [stdout] | [INFO] [stdout] 313 | if let TableChild::TableRow(table_row) = row { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pre_width` [INFO] [stdout] --> src/sql_parser/cell.rs:334:57 [INFO] [stdout] | [INFO] [stdout] 334 | ... let pre_width = property_value [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pre_width` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Store` [INFO] [stdout] --> src/sql_parser/tables.rs:16:22 [INFO] [stdout] | [INFO] [stdout] 16 | RowIter, Store, StoreMut, Transaction, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Store` [INFO] [stdout] --> src/sql_parser/cell.rs:17:22 [INFO] [stdout] | [INFO] [stdout] 17 | RowIter, Store, StoreMut, Transaction, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Digest` [INFO] [stdout] --> src/sql_parser/mod.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | use sha2::{Digest, Sha256}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StreamExt` [INFO] [stdout] --> src/sql_parser/mod.rs:8:29 [INFO] [stdout] | [INFO] [stdout] 8 | use futures::stream::{self, StreamExt}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/sql_parser/mod.rs:34:22 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn new(docx: &mut Document) -> DocxDb { [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 34 | pub fn new(docx: &mut Document) -> DocxDb<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling docx-tool v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable `rowIter` should have a snake case name [INFO] [stdout] --> src/sql_parser/tables.rs:149:23 [INFO] [stdout] | [INFO] [stdout] 149 | if let Ok(mut rowIter) = self.scan_data(docx).await { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `row_iter` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rowIter` should have a snake case name [INFO] [stdout] --> src/sql_parser/cell.rs:142:23 [INFO] [stdout] | [INFO] [stdout] 142 | if let Ok(mut rowIter) = self.scan_data(docx).await { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `row_iter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Engine` and `engine::general_purpose` [INFO] [stdout] --> examples/show-docx/main.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use base64::{Engine, engine::general_purpose}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bytes::Bytes` [INFO] [stdout] --> examples/show-docx/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use bytes::Bytes; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arg` and `Command` [INFO] [stdout] --> examples/show-docx/main.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | use clap::{Arg, Command}; [INFO] [stdout] | ^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `docx_handlebars::render_handlebars` [INFO] [stdout] --> examples/show-docx/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use docx_handlebars::render_handlebars; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> examples/show-docx/main.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value` [INFO] [stdout] --> examples/show-docx/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use serde_json::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> examples/show-docx/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `gluesql::core::store::GStore` [INFO] [stdout] --> examples/sql/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use gluesql::core::store::GStore; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DataRow`, `DataType`, `Error`, `Key`, `RowIter`, `SchemaParseError`, `Schema`, `Store`, `ast::ColumnDef`, `data::Value`, and `error::FetchError` [INFO] [stdout] --> examples/sql/main.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | ast::ColumnDef, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 8 | data::Value, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 9 | data::{Schema, SchemaParseError}, [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] 10 | error::FetchError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 11 | store::{DataRow, RowIter, Store}, [INFO] [stdout] | ^^^^^^^ ^^^^^^^ ^^^^^ [INFO] [stdout] 12 | }, [INFO] [stdout] 13 | prelude::{DataType, Error, Key, Result}, [INFO] [stdout] | ^^^^^^^^ ^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `collections::HashMap` and `str::FromStr` [INFO] [stdout] --> src/sql_parser/mod.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, str::FromStr}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DocumentChild`, `Docx`, `Justification`, `TableAlignmentType`, `TableChild`, `WidthType`, and `read_docx` [INFO] [stdout] --> src/sql_parser/mod.rs:5:15 [INFO] [stdout] | [INFO] [stdout] 5 | Document, DocumentChild, Docx, Justification, TableAlignmentType, TableChild, WidthType, [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] 6 | read_docx, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DataType`, `Value`, `ast::ColumnDef`, and `error::FetchError` [INFO] [stdout] --> src/sql_parser/mod.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | ast::ColumnDef, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 12 | data::{Schema, SchemaParseError, Value}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 13 | error::FetchError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | prelude::{DataType, Error, Key, Result}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Sha256` [INFO] [stdout] --> src/sql_parser/mod.rs:21:20 [INFO] [stdout] | [INFO] [stdout] 21 | use sha2::{Digest, Sha256}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> src/sql_parser/mod.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `async_trait::async_trait` [INFO] [stdout] --> src/sql_parser/tables.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Docx`, `Justification`, and `read_docx` [INFO] [stdout] --> src/sql_parser/tables.rs:5:42 [INFO] [stdout] | [INFO] [stdout] 5 | BorderType, Document, DocumentChild, Docx, Justification, TableAlignmentType, TableBorder, [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] 6 | TableBorderPosition, TableChild, TableProperty, WidthType, read_docx, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AlterTable`, `CustomFunctionMut`, `CustomFunction`, `Error`, `IndexMut`, `Index`, `Metadata`, `SchemaParseError`, `StoreMut`, `Transaction`, and `error::FetchError` [INFO] [stdout] --> src/sql_parser/tables.rs:12:24 [INFO] [stdout] | [INFO] [stdout] 12 | data::{Schema, SchemaParseError, Value}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | error::FetchError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | store::{ [INFO] [stdout] 15 | AlterTable, CustomFunction, CustomFunctionMut, DataRow, Index, IndexMut, Metadata, [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^ ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] 16 | RowIter, Store, StoreMut, Transaction, [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | prelude::{DataType, Error, Key, Result}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `iter` [INFO] [stdout] --> src/sql_parser/cell.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, iter, str::FromStr}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `async_trait::async_trait` [INFO] [stdout] --> src/sql_parser/cell.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Docx`, `Justification`, `Paragraph`, `TableAlignmentType`, `border_position`, and `read_docx` [INFO] [stdout] --> src/sql_parser/cell.rs:5:42 [INFO] [stdout] | [INFO] [stdout] 5 | BorderType, Document, DocumentChild, Docx, Justification, Paragraph, ParagraphChild, RunChild, [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] 6 | TableAlignmentType, TableCellBorder, TableCellBorderPosition, TableCellContent, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 7 | TableCellProperty, TableChild, TableRowChild, WidthType, border_position, read_docx, [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AlterTable`, `CustomFunctionMut`, `CustomFunction`, `Error`, `IndexMut`, `Index`, `Metadata`, `SchemaParseError`, `StoreMut`, `Transaction`, and `error::FetchError` [INFO] [stdout] --> src/sql_parser/cell.rs:13:24 [INFO] [stdout] | [INFO] [stdout] 13 | data::{Schema, SchemaParseError, Value}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | error::FetchError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 15 | store::{ [INFO] [stdout] 16 | AlterTable, CustomFunction, CustomFunctionMut, DataRow, Index, IndexMut, Metadata, [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^ ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] 17 | RowIter, Store, StoreMut, Transaction, [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | prelude::{DataType, Error, Key, Result}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bytes::Bytes` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use bytes::Bytes; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/sql_parser/tables.rs:179:28 [INFO] [stdout] | [INFO] [stdout] 179 | if let TableChild::TableRow(table_row) = item { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> examples/sql/main.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | docx.build().pack(file); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 42 | let _ = docx.build().pack(file); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pre_width` [INFO] [stdout] --> src/sql_parser/tables.rs:314:45 [INFO] [stdout] | [INFO] [stdout] 314 | ... let pre_width = property_value [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pre_width` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/sql_parser/cell.rs:168:24 [INFO] [stdout] | [INFO] [stdout] 168 | if let TableChild::TableRow(table_row) = row { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/sql_parser/cell.rs:170:32 [INFO] [stdout] | [INFO] [stdout] 170 | ... if let TableRowChild::TableCell(table_cell) = cell { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/sql_parser/cell.rs:313:24 [INFO] [stdout] | [INFO] [stdout] 313 | if let TableChild::TableRow(table_row) = row { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pre_width` [INFO] [stdout] --> src/sql_parser/cell.rs:334:57 [INFO] [stdout] | [INFO] [stdout] 334 | ... let pre_width = property_value [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pre_width` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Store` [INFO] [stdout] --> src/sql_parser/tables.rs:16:22 [INFO] [stdout] | [INFO] [stdout] 16 | RowIter, Store, StoreMut, Transaction, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Store` [INFO] [stdout] --> src/sql_parser/cell.rs:17:22 [INFO] [stdout] | [INFO] [stdout] 17 | RowIter, Store, StoreMut, Transaction, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Digest` [INFO] [stdout] --> src/sql_parser/mod.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | use sha2::{Digest, Sha256}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StreamExt` [INFO] [stdout] --> src/sql_parser/mod.rs:8:29 [INFO] [stdout] | [INFO] [stdout] 8 | use futures::stream::{self, StreamExt}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/sql_parser/mod.rs:34:22 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn new(docx: &mut Document) -> DocxDb { [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 34 | pub fn new(docx: &mut Document) -> DocxDb<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rowIter` should have a snake case name [INFO] [stdout] --> src/sql_parser/tables.rs:149:23 [INFO] [stdout] | [INFO] [stdout] 149 | if let Ok(mut rowIter) = self.scan_data(docx).await { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `row_iter` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rowIter` should have a snake case name [INFO] [stdout] --> src/sql_parser/cell.rs:142:23 [INFO] [stdout] | [INFO] [stdout] 142 | if let Ok(mut rowIter) = self.scan_data(docx).await { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `row_iter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ref_` [INFO] [stdout] --> src/main.rs:69:53 [INFO] [stdout] | [INFO] [stdout] 69 | ... if let SchemaRef::Ref { ref_, original_ref } = schema { [INFO] [stdout] | ^^^^ help: try ignoring the field: `ref_: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `description` [INFO] [stdout] --> src/main.rs:108:25 [INFO] [stdout] | [INFO] [stdout] 108 | let description = response.description.clone(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_description` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ref_` [INFO] [stdout] --> src/main.rs:110:49 [INFO] [stdout] | [INFO] [stdout] 110 | if let SchemaRef::Ref { ref_, original_ref } = schema { [INFO] [stdout] | ^^^^ help: try ignoring the field: `ref_: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `basePath` should have a snake case name [INFO] [stdout] --> src/main.rs:291:9 [INFO] [stdout] | [INFO] [stdout] 291 | pub basePath: Option, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `base_path` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `securityDefinitions` should have a snake case name [INFO] [stdout] --> src/main.rs:294:9 [INFO] [stdout] | [INFO] [stdout] 294 | pub securityDefinitions: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `security_definitions` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 10.06s [INFO] running `Command { std: "docker" "inspect" "126eb3a21a423a6125d6fe346a5ebc23b50fcc3fc7b5a0bf7df53dcdf798bf11", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "126eb3a21a423a6125d6fe346a5ebc23b50fcc3fc7b5a0bf7df53dcdf798bf11", kill_on_drop: false }` [INFO] [stdout] 126eb3a21a423a6125d6fe346a5ebc23b50fcc3fc7b5a0bf7df53dcdf798bf11