[INFO] fetching crate iepub 0.8.6... [INFO] checking iepub-0.8.6 against master#40daf23eeb711dadf140b2536e67e3ff4c999196 for pr-142287 [INFO] extracting crate iepub 0.8.6 into /workspace/builds/worker-6-tc1/source [INFO] validating manifest of crates.io crate iepub 0.8.6 on toolchain 40daf23eeb711dadf140b2536e67e3ff4c999196 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+40daf23eeb711dadf140b2536e67e3ff4c999196" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate iepub 0.8.6 [INFO] finished tweaking crates.io crate iepub 0.8.6 [INFO] tweaked toml for crates.io crate iepub 0.8.6 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate crates.io crate iepub 0.8.6 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" "+40daf23eeb711dadf140b2536e67e3ff4c999196" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tinyget v1.1.2 [INFO] [stderr] Downloaded liblzma v0.4.1 [INFO] [stderr] Downloaded zip v4.0.0 [INFO] [stderr] Downloaded liblzma-sys v0.4.3 [INFO] [stderr] Downloaded iepub-derive v0.8.6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+40daf23eeb711dadf140b2536e67e3ff4c999196" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 770549568f5033e6424a67238806c62ccd0495d8e5750e840c321a6ed80de1f4 [INFO] running `Command { std: "docker" "start" "-a" "770549568f5033e6424a67238806c62ccd0495d8e5750e840c321a6ed80de1f4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "770549568f5033e6424a67238806c62ccd0495d8e5750e840c321a6ed80de1f4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "770549568f5033e6424a67238806c62ccd0495d8e5750e840c321a6ed80de1f4", kill_on_drop: false }` [INFO] [stdout] 770549568f5033e6424a67238806c62ccd0495d8e5750e840c321a6ed80de1f4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+40daf23eeb711dadf140b2536e67e3ff4c999196" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 66bbea438f40a3f05ef7d454db8f64c64190fc96de163b2ee94c43b80ce1ac01 [INFO] running `Command { std: "docker" "start" "-a" "66bbea438f40a3f05ef7d454db8f64c64190fc96de163b2ee94c43b80ce1ac01", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Compiling zstd-safe v7.2.4 [INFO] [stderr] Checking log v0.4.27 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Checking zlib-rs v0.5.0 [INFO] [stderr] Checking cpufeatures v0.2.17 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Checking crc32fast v1.4.2 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Checking powerfmt v0.2.0 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Checking hashbrown v0.15.3 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking time-core v0.1.4 [INFO] [stderr] Checking bitflags v2.9.1 [INFO] [stderr] Checking once_cell v1.21.3 [INFO] [stderr] Checking deranged v0.4.0 [INFO] [stderr] Checking equivalent v1.0.2 [INFO] [stderr] Checking num-conv v0.1.0 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Checking bumpalo v3.17.0 [INFO] [stderr] Checking simd-adler32 v0.3.7 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Checking deflate64 v0.1.9 [INFO] [stderr] Checking constant_time_eq v0.3.1 [INFO] [stderr] Compiling iepub v0.8.6 (/opt/rustwide/workdir) [INFO] [stderr] Checking libz-rs-sys v0.5.0 [INFO] [stderr] Checking openssl-probe v0.1.6 [INFO] [stderr] Compiling iepub-derive v0.8.6 [INFO] [stderr] Checking zopfli v0.8.2 [INFO] [stderr] Checking urlencoding v2.1.3 [INFO] [stderr] Checking flate2 v1.1.1 [INFO] [stderr] Checking quick-xml v0.37.5 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Checking indexmap v2.9.0 [INFO] [stderr] Compiling syn v2.0.101 [INFO] [stderr] Checking time v0.3.41 [INFO] [stderr] Compiling jobserver v0.1.33 [INFO] [stderr] Compiling cc v1.2.25 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking inout v0.1.4 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Checking aes v0.8.4 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking pbkdf2 v0.12.2 [INFO] [stderr] Compiling zstd-sys v2.0.15+zstd.1.5.7 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling liblzma-sys v0.4.3 [INFO] [stderr] Compiling bzip2-sys v0.1.13+1.0.8 [INFO] [stderr] Checking bzip2 v0.5.2 [INFO] [stderr] Checking liblzma v0.4.1 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling zeroize_derive v1.4.2 [INFO] [stderr] Checking zeroize v1.8.1 [INFO] [stderr] Checking zstd v0.13.3 [INFO] [stderr] Checking zip v4.0.0 [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/epub/html.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Cursor` [INFO] [stdout] --> src/mobi/writer.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | io::{BufWriter, Cursor, Seek, Write}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `book_name` [INFO] [stdout] --> src/cover.rs:174:25 [INFO] [stdout] | [INFO] [stdout] 174 | pub(crate) fn gen_cover(book_name: &str, font: &[u8]) -> IResult> { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_book_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `font` [INFO] [stdout] --> src/cover.rs:174:42 [INFO] [stdout] | [INFO] [stdout] 174 | pub(crate) fn gen_cover(book_name: &str, font: &[u8]) -> IResult> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_font` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/epub/core.rs:84:25 [INFO] [stdout] | [INFO] [stdout] 84 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `book` [INFO] [stdout] --> src/epub/reader.rs:256:5 [INFO] [stdout] | [INFO] [stdout] 256 | book: &mut EpubBook, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_book` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `items` [INFO] [stdout] --> src/mobi/reader.rs:731:17 [INFO] [stdout] | [INFO] [stdout] 731 | let items = table.iter().enumerate().map(|(index, (name, map))| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_items` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `EPUB3` is never used [INFO] [stdout] --> src/epub/common.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 86 | pub static EPUB3: &str = "EPUB/"; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `read_data`, `set_language`, and `get_links` are never used [INFO] [stdout] --> src/epub/core.rs:101:8 [INFO] [stdout] | [INFO] [stdout] 55 | impl EpubHtml { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 101 | fn read_data(&mut self) -> Option<&[u8]> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 140 | fn set_language(&mut self, lang: &str) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | fn get_links(&mut self) -> Option<&mut Vec> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `reader` is never read [INFO] [stdout] --> src/epub/common.rs:28:17 [INFO] [stdout] | [INFO] [stdout] 28 | reader:Option>>>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/epub/core.rs:231:1 [INFO] [stdout] | [INFO] [stdout] 231 | / epub_base_field! { [INFO] [stdout] 232 | | /// [INFO] [stdout] 233 | | /// 目录信息 [INFO] [stdout] 234 | | /// [INFO] [stdout] ... | [INFO] [stdout] 238 | | pub struct EpubNav { [INFO] [stdout] | | ------- field in this struct [INFO] [stdout] ... | [INFO] [stdout] 244 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `epub_base_field` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `INDXRecord` is never constructed [INFO] [stdout] --> src/mobi/common.rs:223:19 [INFO] [stdout] | [INFO] [stdout] 223 | pub(crate) struct INDXRecord { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `INDXRecord` has derived impls for the traits `Debug` and `Default`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NCX` is never constructed [INFO] [stdout] --> src/mobi/common.rs:288:19 [INFO] [stdout] | [INFO] [stdout] 288 | pub(crate) struct NCX { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NCX` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `raw` and `index` are never read [INFO] [stdout] --> src/mobi/core.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct MobiHtml { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 6 | raw: Option>, [INFO] [stdout] | ^^^ [INFO] [stdout] 7 | /// 在整个文本中的索引位置,读取时使用 [INFO] [stdout] 8 | index: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MobiHtml` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `media_type` is never read [INFO] [stdout] --> src/mobi/core.rs:145:16 [INFO] [stdout] | [INFO] [stdout] 143 | pub struct MobiAssets { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 144 | pub(crate) _file_name: String, [INFO] [stdout] 145 | pub(crate) media_type: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MobiAssets` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `write` is never used [INFO] [stdout] --> src/mobi/image.rs:8:19 [INFO] [stdout] | [INFO] [stdout] 7 | impl Cover { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 8 | pub(crate) fn write(&mut self, file: &str) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/mobi/nav.rs:163:5 [INFO] [stdout] | [INFO] [stdout] 158 | pub(crate) struct NavFilePos { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 163 | id: usize, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `load` is never used [INFO] [stdout] --> src/mobi/reader.rs:286:12 [INFO] [stdout] | [INFO] [stdout] 285 | impl INDXRecord { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 286 | pub fn load(reader: &mut T) -> IResult [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_unset_end` is never used [INFO] [stdout] --> src/mobi/reader.rs:330:4 [INFO] [stdout] | [INFO] [stdout] 330 | fn count_unset_end(v: u8) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_var_len` is never used [INFO] [stdout] --> src/mobi/reader.rs:339:4 [INFO] [stdout] | [INFO] [stdout] 339 | fn get_var_len(byte: &[u8]) -> (usize, usize) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from` is never used [INFO] [stdout] --> src/mobi/reader.rs:454:8 [INFO] [stdout] | [INFO] [stdout] 453 | impl NCX { [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] 454 | fn from(index: usize, label: String, map: &HashMap>) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `read_nav` is never used [INFO] [stdout] --> src/mobi/reader.rs:578:19 [INFO] [stdout] | [INFO] [stdout] 495 | impl MobiReader { [INFO] [stdout] | ---------------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 578 | pub(crate) fn read_nav(&mut self) -> IResult<()> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `NCXExt` is never used [INFO] [stdout] --> src/mobi/reader.rs:375:22 [INFO] [stdout] | [INFO] [stdout] 375 | pub(crate) trait NCXExt { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `read_u8` and `skip` are never used [INFO] [stdout] --> src/mobi/reader.rs:389:12 [INFO] [stdout] | [INFO] [stdout] 388 | pub(crate) trait ReadCount: Read + Seek { [INFO] [stdout] | --------- methods in this trait [INFO] [stdout] 389 | fn read_u8(&mut self) -> IResult { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 442 | fn skip(&mut self, limit: u64) -> IResult { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `write_u64` is never used [INFO] [stdout] --> src/mobi/writer.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 21 | trait WriteCount: Write { [INFO] [stdout] | ---------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 24 | fn write_u64(&mut self, value: u64) -> std::io::Result; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `index` and `magic` are never read [INFO] [stdout] --> src/mobi/writer.rs:321:5 [INFO] [stdout] | [INFO] [stdout] 320 | struct PDBRecord { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 321 | index: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 322 | magic: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `write_uncrossable_breaks` is never used [INFO] [stdout] --> src/mobi/writer.rs:661:8 [INFO] [stdout] | [INFO] [stdout] 460 | impl MobiWriter { [INFO] [stdout] | ----------------------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 661 | fn write_uncrossable_breaks(_text: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `home` is never read [INFO] [stdout] --> src/path.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Path { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 9 | home: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Path` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/epub/core.rs:144:18 [INFO] [stdout] | [INFO] [stdout] 144 | pub fn links(&self) -> Option> { [INFO] [stdout] | ^^^^^ -------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 144 | pub fn links(&self) -> Option> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/epub/core.rs:497:19 [INFO] [stdout] | [INFO] [stdout] 497 | pub fn assets(&self) -> std::slice::Iter { [INFO] [stdout] | ^^^^^ ---------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 497 | pub fn assets(&self) -> std::slice::Iter<'_, EpubAssets> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/epub/core.rs:501:23 [INFO] [stdout] | [INFO] [stdout] 501 | pub fn assets_mut(&mut self) -> std::slice::IterMut { [INFO] [stdout] | ^^^^^^^^^ ------------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 501 | pub fn assets_mut(&mut self) -> std::slice::IterMut<'_, EpubAssets> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/epub/core.rs:512:25 [INFO] [stdout] | [INFO] [stdout] 512 | pub fn chapters_mut(&mut self) -> std::slice::IterMut { [INFO] [stdout] | ^^^^^^^^^ ----------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 512 | pub fn chapters_mut(&mut self) -> std::slice::IterMut<'_, EpubHtml> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/epub/core.rs:516:21 [INFO] [stdout] | [INFO] [stdout] 516 | pub fn chapters(&self) -> std::slice::Iter { [INFO] [stdout] | ^^^^^ -------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 516 | pub fn chapters(&self) -> std::slice::Iter<'_, EpubHtml> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/mobi/core.rs:92:21 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn children(&self) -> std::slice::Iter { [INFO] [stdout] | ^^^^^ ------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 92 | pub fn children(&self) -> std::slice::Iter<'_, MobiNav> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/mobi/core.rs:244:23 [INFO] [stdout] | [INFO] [stdout] 244 | pub fn assets_mut(&mut self) -> std::slice::IterMut { [INFO] [stdout] | ^^^^^^^^^ ------------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 244 | pub fn assets_mut(&mut self) -> std::slice::IterMut<'_, MobiAssets> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/mobi/core.rs:248:19 [INFO] [stdout] | [INFO] [stdout] 248 | pub fn assets(&self) -> std::slice::Iter { [INFO] [stdout] | ^^^^^ ---------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 248 | pub fn assets(&self) -> std::slice::Iter<'_, MobiAssets> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/mobi/core.rs:256:25 [INFO] [stdout] | [INFO] [stdout] 256 | pub fn chapters_mut(&mut self) -> std::slice::IterMut { [INFO] [stdout] | ^^^^^^^^^ ----------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 256 | pub fn chapters_mut(&mut self) -> std::slice::IterMut<'_, MobiHtml> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/mobi/core.rs:260:21 [INFO] [stdout] | [INFO] [stdout] 260 | pub fn chapters(&self) -> std::slice::Iter { [INFO] [stdout] | ^^^^^ -------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 260 | pub fn chapters(&self) -> std::slice::Iter<'_, MobiHtml> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/mobi/core.rs:268:16 [INFO] [stdout] | [INFO] [stdout] 268 | pub fn nav(&self) -> Option> { [INFO] [stdout] | ^^^^^ ------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 268 | pub fn nav(&self) -> Option> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/mobi/nav.rs:50:63 [INFO] [stdout] | [INFO] [stdout] 50 | let mut n = MobiNav::default(unsafe { ID.fetch_add(1, Ordering::SeqCst) }); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/mobi/nav.rs:57:63 [INFO] [stdout] | [INFO] [stdout] 57 | let mut n = MobiNav::default(unsafe { ID.fetch_add(1, Ordering::SeqCst) }); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/mobi/nav.rs:313:25 [INFO] [stdout] | [INFO] [stdout] 313 | ID.fetch_add(1, Ordering::SeqCst) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking tinyget v1.1.2 [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/epub/html.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_section_from_html` [INFO] [stdout] --> src/epub/html.rs:482:48 [INFO] [stdout] | [INFO] [stdout] 482 | use super::{get_html_info, get_media_type, get_section_from_html, to_html, to_toc_xml}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Cursor` [INFO] [stdout] --> src/mobi/writer.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | io::{BufWriter, Cursor, Seek, Write}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `len` [INFO] [stdout] --> src/adapter/core.rs:589:31 [INFO] [stdout] | [INFO] [stdout] 589 | let (mut builder, len, a_len) = [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_len` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a_len` [INFO] [stdout] --> src/adapter/core.rs:589:36 [INFO] [stdout] | [INFO] [stdout] 589 | let (mut builder, len, a_len) = [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_a_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/adapter/core.rs:530:17 [INFO] [stdout] | [INFO] [stdout] 530 | let mut builder = EpubBuilder::new() [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/adapter/core.rs:562:17 [INFO] [stdout] | [INFO] [stdout] 562 | let mut builder = EpubBuilder::new() [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/adapter/core.rs:586:17 [INFO] [stdout] | [INFO] [stdout] 586 | let mut builder = EpubBuilder::default(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/adapter/core.rs:587:18 [INFO] [stdout] | [INFO] [stdout] 587 | let (mut builder, len, a_len) = add_into_epub(builder, &mut book1, 0, 0, 0).unwrap(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/adapter/core.rs:589:18 [INFO] [stdout] | [INFO] [stdout] 589 | let (mut builder, len, a_len) = [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/common.rs:262:27 [INFO] [stdout] | [INFO] [stdout] 262 | .map_err(|e| IError::InvalidArchive(Cow::from("download fail"))) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/common.rs:278:27 [INFO] [stdout] | [INFO] [stdout] 278 | .map_err(|e| IError::InvalidArchive(Cow::from("download fail"))) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/common.rs:281:35 [INFO] [stdout] | [INFO] [stdout] 281 | .map_err(|e| IError::InvalidArchive(Cow::from("download fail"))) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `book_name` [INFO] [stdout] --> src/cover.rs:174:25 [INFO] [stdout] | [INFO] [stdout] 174 | pub(crate) fn gen_cover(book_name: &str, font: &[u8]) -> IResult> { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_book_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `font` [INFO] [stdout] --> src/cover.rs:174:42 [INFO] [stdout] | [INFO] [stdout] 174 | pub(crate) fn gen_cover(book_name: &str, font: &[u8]) -> IResult> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_font` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/epub/core.rs:84:25 [INFO] [stdout] | [INFO] [stdout] 84 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `title` [INFO] [stdout] --> src/epub/html.rs:679:14 [INFO] [stdout] | [INFO] [stdout] 679 | let (title, data) = get_html_info(html.as_str(), Some("pgepubid00495")).unwrap(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_title` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `book` [INFO] [stdout] --> src/epub/reader.rs:256:5 [INFO] [stdout] | [INFO] [stdout] 256 | book: &mut EpubBook, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_book` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `items` [INFO] [stdout] --> src/mobi/reader.rs:731:17 [INFO] [stdout] | [INFO] [stdout] 731 | let items = table.iter().enumerate().map(|(index, (name, map))| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_items` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `EPUB3` is never used [INFO] [stdout] --> src/epub/common.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 86 | pub static EPUB3: &str = "EPUB/"; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `read_data`, `set_language`, and `get_links` are never used [INFO] [stdout] --> src/epub/core.rs:101:8 [INFO] [stdout] | [INFO] [stdout] 55 | impl EpubHtml { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 101 | fn read_data(&mut self) -> Option<&[u8]> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 140 | fn set_language(&mut self, lang: &str) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | fn get_links(&mut self) -> Option<&mut Vec> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `reader` is never read [INFO] [stdout] --> src/epub/common.rs:28:17 [INFO] [stdout] | [INFO] [stdout] 28 | reader:Option>>>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/epub/core.rs:231:1 [INFO] [stdout] | [INFO] [stdout] 231 | / epub_base_field! { [INFO] [stdout] 232 | | /// [INFO] [stdout] 233 | | /// 目录信息 [INFO] [stdout] 234 | | /// [INFO] [stdout] ... | [INFO] [stdout] 238 | | pub struct EpubNav { [INFO] [stdout] | | ------- field in this struct [INFO] [stdout] ... | [INFO] [stdout] 244 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `epub_base_field` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `INDXRecord` is never constructed [INFO] [stdout] --> src/mobi/common.rs:223:19 [INFO] [stdout] | [INFO] [stdout] 223 | pub(crate) struct INDXRecord { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `INDXRecord` has derived impls for the traits `Debug` and `Default`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NCX` is never constructed [INFO] [stdout] --> src/mobi/common.rs:288:19 [INFO] [stdout] | [INFO] [stdout] 288 | pub(crate) struct NCX { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NCX` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `raw` and `index` are never read [INFO] [stdout] --> src/mobi/core.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct MobiHtml { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 6 | raw: Option>, [INFO] [stdout] | ^^^ [INFO] [stdout] 7 | /// 在整个文本中的索引位置,读取时使用 [INFO] [stdout] 8 | index: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MobiHtml` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `media_type` is never read [INFO] [stdout] --> src/mobi/core.rs:145:16 [INFO] [stdout] | [INFO] [stdout] 143 | pub struct MobiAssets { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 144 | pub(crate) _file_name: String, [INFO] [stdout] 145 | pub(crate) media_type: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MobiAssets` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `write` is never used [INFO] [stdout] --> src/mobi/image.rs:8:19 [INFO] [stdout] | [INFO] [stdout] 7 | impl Cover { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 8 | pub(crate) fn write(&mut self, file: &str) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/mobi/nav.rs:163:5 [INFO] [stdout] | [INFO] [stdout] 158 | pub(crate) struct NavFilePos { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 163 | id: usize, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `load` is never used [INFO] [stdout] --> src/mobi/reader.rs:286:12 [INFO] [stdout] | [INFO] [stdout] 285 | impl INDXRecord { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 286 | pub fn load(reader: &mut T) -> IResult [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_unset_end` is never used [INFO] [stdout] --> src/mobi/reader.rs:330:4 [INFO] [stdout] | [INFO] [stdout] 330 | fn count_unset_end(v: u8) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_var_len` is never used [INFO] [stdout] --> src/mobi/reader.rs:339:4 [INFO] [stdout] | [INFO] [stdout] 339 | fn get_var_len(byte: &[u8]) -> (usize, usize) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from` is never used [INFO] [stdout] --> src/mobi/reader.rs:454:8 [INFO] [stdout] | [INFO] [stdout] 453 | impl NCX { [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] 454 | fn from(index: usize, label: String, map: &HashMap>) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `read_nav` is never used [INFO] [stdout] --> src/mobi/reader.rs:578:19 [INFO] [stdout] | [INFO] [stdout] 495 | impl MobiReader { [INFO] [stdout] | ---------------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 578 | pub(crate) fn read_nav(&mut self) -> IResult<()> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `NCXExt` is never used [INFO] [stdout] --> src/mobi/reader.rs:375:22 [INFO] [stdout] | [INFO] [stdout] 375 | pub(crate) trait NCXExt { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `read_u8` and `skip` are never used [INFO] [stdout] --> src/mobi/reader.rs:389:12 [INFO] [stdout] | [INFO] [stdout] 388 | pub(crate) trait ReadCount: Read + Seek { [INFO] [stdout] | --------- methods in this trait [INFO] [stdout] 389 | fn read_u8(&mut self) -> IResult { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 442 | fn skip(&mut self, limit: u64) -> IResult { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `write_u64` is never used [INFO] [stdout] --> src/mobi/writer.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 21 | trait WriteCount: Write { [INFO] [stdout] | ---------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 24 | fn write_u64(&mut self, value: u64) -> std::io::Result; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `index` and `magic` are never read [INFO] [stdout] --> src/mobi/writer.rs:321:5 [INFO] [stdout] | [INFO] [stdout] 320 | struct PDBRecord { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 321 | index: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 322 | magic: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `write_uncrossable_breaks` is never used [INFO] [stdout] --> src/mobi/writer.rs:661:8 [INFO] [stdout] | [INFO] [stdout] 460 | impl MobiWriter { [INFO] [stdout] | ----------------------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 661 | fn write_uncrossable_breaks(_text: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `home` is never read [INFO] [stdout] --> src/path.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Path { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 9 | home: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Path` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/epub/core.rs:144:18 [INFO] [stdout] | [INFO] [stdout] 144 | pub fn links(&self) -> Option> { [INFO] [stdout] | ^^^^^ -------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 144 | pub fn links(&self) -> Option> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/epub/core.rs:497:19 [INFO] [stdout] | [INFO] [stdout] 497 | pub fn assets(&self) -> std::slice::Iter { [INFO] [stdout] | ^^^^^ ---------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 497 | pub fn assets(&self) -> std::slice::Iter<'_, EpubAssets> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/epub/core.rs:501:23 [INFO] [stdout] | [INFO] [stdout] 501 | pub fn assets_mut(&mut self) -> std::slice::IterMut { [INFO] [stdout] | ^^^^^^^^^ ------------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 501 | pub fn assets_mut(&mut self) -> std::slice::IterMut<'_, EpubAssets> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/epub/core.rs:512:25 [INFO] [stdout] | [INFO] [stdout] 512 | pub fn chapters_mut(&mut self) -> std::slice::IterMut { [INFO] [stdout] | ^^^^^^^^^ ----------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 512 | pub fn chapters_mut(&mut self) -> std::slice::IterMut<'_, EpubHtml> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/epub/core.rs:516:21 [INFO] [stdout] | [INFO] [stdout] 516 | pub fn chapters(&self) -> std::slice::Iter { [INFO] [stdout] | ^^^^^ -------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 516 | pub fn chapters(&self) -> std::slice::Iter<'_, EpubHtml> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/mobi/core.rs:92:21 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn children(&self) -> std::slice::Iter { [INFO] [stdout] | ^^^^^ ------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 92 | pub fn children(&self) -> std::slice::Iter<'_, MobiNav> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/mobi/core.rs:244:23 [INFO] [stdout] | [INFO] [stdout] 244 | pub fn assets_mut(&mut self) -> std::slice::IterMut { [INFO] [stdout] | ^^^^^^^^^ ------------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 244 | pub fn assets_mut(&mut self) -> std::slice::IterMut<'_, MobiAssets> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/mobi/core.rs:248:19 [INFO] [stdout] | [INFO] [stdout] 248 | pub fn assets(&self) -> std::slice::Iter { [INFO] [stdout] | ^^^^^ ---------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 248 | pub fn assets(&self) -> std::slice::Iter<'_, MobiAssets> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/mobi/core.rs:256:25 [INFO] [stdout] | [INFO] [stdout] 256 | pub fn chapters_mut(&mut self) -> std::slice::IterMut { [INFO] [stdout] | ^^^^^^^^^ ----------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 256 | pub fn chapters_mut(&mut self) -> std::slice::IterMut<'_, MobiHtml> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/mobi/core.rs:260:21 [INFO] [stdout] | [INFO] [stdout] 260 | pub fn chapters(&self) -> std::slice::Iter { [INFO] [stdout] | ^^^^^ -------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 260 | pub fn chapters(&self) -> std::slice::Iter<'_, MobiHtml> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/mobi/core.rs:268:16 [INFO] [stdout] | [INFO] [stdout] 268 | pub fn nav(&self) -> Option> { [INFO] [stdout] | ^^^^^ ------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 268 | pub fn nav(&self) -> Option> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/mobi/nav.rs:50:63 [INFO] [stdout] | [INFO] [stdout] 50 | let mut n = MobiNav::default(unsafe { ID.fetch_add(1, Ordering::SeqCst) }); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/mobi/nav.rs:57:63 [INFO] [stdout] | [INFO] [stdout] 57 | let mut n = MobiNav::default(unsafe { ID.fetch_add(1, Ordering::SeqCst) }); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/mobi/nav.rs:313:25 [INFO] [stdout] | [INFO] [stdout] 313 | ID.fetch_add(1, Ordering::SeqCst) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 18.87s [INFO] running `Command { std: "docker" "inspect" "66bbea438f40a3f05ef7d454db8f64c64190fc96de163b2ee94c43b80ce1ac01", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "66bbea438f40a3f05ef7d454db8f64c64190fc96de163b2ee94c43b80ce1ac01", kill_on_drop: false }` [INFO] [stdout] 66bbea438f40a3f05ef7d454db8f64c64190fc96de163b2ee94c43b80ce1ac01