[INFO] fetching crate iepub 1.0.1... [INFO] checking iepub-1.0.1 against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] extracting crate iepub 1.0.1 into /workspace/builds/worker-3-tc2/source [INFO] started tweaking crates.io crate iepub 1.0.1 [INFO] finished tweaking crates.io crate iepub 1.0.1 [INFO] tweaked toml for crates.io crate iepub 1.0.1 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate iepub 1.0.1 on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate iepub 1.0.1 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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 27f8fd7b636d8afcfe7ad85c8e898c0b08ad9355300d30cfbae10524efe6487a [INFO] running `Command { std: "docker" "start" "-a" "27f8fd7b636d8afcfe7ad85c8e898c0b08ad9355300d30cfbae10524efe6487a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "27f8fd7b636d8afcfe7ad85c8e898c0b08ad9355300d30cfbae10524efe6487a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "27f8fd7b636d8afcfe7ad85c8e898c0b08ad9355300d30cfbae10524efe6487a", kill_on_drop: false }` [INFO] [stdout] 27f8fd7b636d8afcfe7ad85c8e898c0b08ad9355300d30cfbae10524efe6487a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5d4f3259009801a52c461bb5f9d1780ae51882e4ed0d095cbfe043da23de7ff9 [INFO] running `Command { std: "docker" "start" "-a" "5d4f3259009801a52c461bb5f9d1780ae51882e4ed0d095cbfe043da23de7ff9", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Checking cfg-if v1.0.1 [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Checking log v0.4.27 [INFO] [stderr] Compiling zstd-safe v7.2.4 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Checking untrusted v0.9.0 [INFO] [stderr] Checking cpufeatures v0.2.17 [INFO] [stderr] Checking powerfmt v0.2.0 [INFO] [stderr] Checking zlib-rs v0.5.1 [INFO] [stderr] Checking libbz2-rs-sys v0.2.1 [INFO] [stderr] Checking deranged v0.4.0 [INFO] [stderr] Checking time-core v0.1.4 [INFO] [stderr] Checking hashbrown v0.15.4 [INFO] [stderr] Checking bumpalo v3.19.0 [INFO] [stderr] Checking num-conv v0.1.0 [INFO] [stderr] Checking simd-adler32 v0.3.7 [INFO] [stderr] Checking memchr v2.7.5 [INFO] [stderr] Checking equivalent v1.0.2 [INFO] [stderr] Checking constant_time_eq v0.3.1 [INFO] [stderr] Compiling iepub v1.0.1 (/opt/rustwide/workdir) [INFO] [stderr] Checking ppmd-rust v1.2.1 [INFO] [stderr] Checking deflate64 v0.1.9 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling iepub-derive v1.0.1 [INFO] [stderr] Checking webpki-roots v0.25.4 [INFO] [stderr] Checking zopfli v0.8.2 [INFO] [stderr] Checking base64 v0.22.1 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Checking time v0.3.41 [INFO] [stderr] Checking bzip2 v0.6.0 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Checking indexmap v2.10.0 [INFO] [stderr] Checking quick-xml v0.37.5 [INFO] [stderr] Checking libz-rs-sys v0.5.1 [INFO] [stderr] Checking flate2 v1.1.2 [INFO] [stderr] Compiling jobserver v0.1.33 [INFO] [stderr] Checking getrandom v0.2.16 [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] Compiling cc v1.2.30 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking pbkdf2 v0.12.2 [INFO] [stderr] Checking aes v0.8.4 [INFO] [stderr] Compiling zstd-sys v2.0.15+zstd.1.5.7 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling liblzma-sys v0.4.4 [INFO] [stderr] Checking liblzma v0.4.2 [INFO] [stderr] Checking rustls-webpki v0.101.7 [INFO] [stderr] Checking sct v0.7.1 [INFO] [stderr] Compiling zeroize_derive v1.4.2 [INFO] [stderr] Checking zeroize v1.8.1 [INFO] [stderr] Checking minreq v2.14.0 [INFO] [stderr] Checking zstd v0.13.3 [INFO] [stderr] Checking zip v4.3.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: `get_section_from_html` [INFO] [stdout] --> src/epub/html.rs:495:48 [INFO] [stdout] | [INFO] [stdout] 495 | 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: `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 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:100:25 [INFO] [stdout] | [INFO] [stdout] 100 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/epub/core.rs:122:14 [INFO] [stdout] | [INFO] [stdout] 122 | let (id, origin) = if let Some(index) = self._file_name.find(|f| f == '#') { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `len` [INFO] [stdout] --> src/adapter/core.rs:585:31 [INFO] [stdout] | [INFO] [stdout] 585 | 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:585:36 [INFO] [stdout] | [INFO] [stdout] 585 | 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:526:17 [INFO] [stdout] | [INFO] [stdout] 526 | 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:558:17 [INFO] [stdout] | [INFO] [stdout] 558 | 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:582:17 [INFO] [stdout] | [INFO] [stdout] 582 | 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:583:18 [INFO] [stdout] | [INFO] [stdout] 583 | 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:585:18 [INFO] [stdout] | [INFO] [stdout] 585 | 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:395:27 [INFO] [stdout] | [INFO] [stdout] 395 | .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:418:27 [INFO] [stdout] | [INFO] [stdout] 418 | .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:429:35 [INFO] [stdout] | [INFO] [stdout] 429 | .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:100:25 [INFO] [stdout] | [INFO] [stdout] 100 | 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:259:5 [INFO] [stdout] | [INFO] [stdout] 259 | 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: `id` [INFO] [stdout] --> src/epub/core.rs:122:14 [INFO] [stdout] | [INFO] [stdout] 122 | let (id, origin) = if let Some(index) = self._file_name.find(|f| f == '#') { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `title` [INFO] [stdout] --> src/epub/html.rs:693:14 [INFO] [stdout] | [INFO] [stdout] 693 | 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:259:5 [INFO] [stdout] | [INFO] [stdout] 259 | 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:733:17 [INFO] [stdout] | [INFO] [stdout] 733 | 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: methods `set_language` and `get_links` are never used [INFO] [stdout] --> src/epub/core.rs:178:8 [INFO] [stdout] | [INFO] [stdout] 55 | impl EpubHtml { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 178 | fn set_language>(&mut self, lang: T) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 194 | fn get_links(&mut self) -> Option<&mut Vec> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [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:298:1 [INFO] [stdout] | [INFO] [stdout] 298 | / epub_base_field! { [INFO] [stdout] 299 | | /// [INFO] [stdout] 300 | | /// 目录信息 [INFO] [stdout] 301 | | /// [INFO] [stdout] ... | [INFO] [stdout] 305 | | pub struct EpubNav { [INFO] [stdout] | | ------- field in this struct [INFO] [stdout] ... | [INFO] [stdout] 311 | | } [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] [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] [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:153:16 [INFO] [stdout] | [INFO] [stdout] 151 | pub struct MobiAssets { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 152 | pub(crate) _file_name: String, [INFO] [stdout] 153 | 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:288:12 [INFO] [stdout] | [INFO] [stdout] 287 | impl INDXRecord { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 288 | 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:332:4 [INFO] [stdout] | [INFO] [stdout] 332 | 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:341:4 [INFO] [stdout] | [INFO] [stdout] 341 | 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:456:8 [INFO] [stdout] | [INFO] [stdout] 455 | impl NCX { [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] 456 | 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:580:19 [INFO] [stdout] | [INFO] [stdout] 497 | impl MobiReader { [INFO] [stdout] | ---------------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 580 | 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:377:22 [INFO] [stdout] | [INFO] [stdout] 377 | 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:391:12 [INFO] [stdout] | [INFO] [stdout] 390 | pub(crate) trait ReadCount: Read + Seek { [INFO] [stdout] | --------- methods in this trait [INFO] [stdout] 391 | fn read_u8(&mut self) -> IResult { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 444 | 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:25:8 [INFO] [stdout] | [INFO] [stdout] 22 | trait WriteCount: Write { [INFO] [stdout] | ---------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 25 | 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:322:5 [INFO] [stdout] | [INFO] [stdout] 321 | struct PDBRecord { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 322 | index: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 323 | 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:672:8 [INFO] [stdout] | [INFO] [stdout] 465 | impl MobiWriter { [INFO] [stdout] | ----------------------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 672 | 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: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/epub/core.rs:182:18 [INFO] [stdout] | [INFO] [stdout] 182 | pub fn links(&self) -> Option> { [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] 182 | pub fn links(&self) -> Option> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/epub/core.rs:358:18 [INFO] [stdout] | [INFO] [stdout] 358 | pub fn child(&self) -> std::slice::Iter { [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 358 | pub fn child(&self) -> std::slice::Iter<'_, EpubNav> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/epub/core.rs:569:19 [INFO] [stdout] | [INFO] [stdout] 569 | pub fn assets(&self) -> std::slice::Iter { [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 569 | pub fn assets(&self) -> std::slice::Iter<'_, EpubAssets> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/epub/core.rs:573:23 [INFO] [stdout] | [INFO] [stdout] 573 | pub fn assets_mut(&mut self) -> std::slice::IterMut { [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 573 | pub fn assets_mut(&mut self) -> std::slice::IterMut<'_, EpubAssets> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/epub/core.rs:584:25 [INFO] [stdout] | [INFO] [stdout] 584 | pub fn chapters_mut(&mut self) -> std::slice::IterMut { [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 584 | pub fn chapters_mut(&mut self) -> std::slice::IterMut<'_, EpubHtml> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/epub/core.rs:588:21 [INFO] [stdout] | [INFO] [stdout] 588 | pub fn chapters(&self) -> std::slice::Iter { [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 588 | pub fn chapters(&self) -> std::slice::Iter<'_, EpubHtml> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/epub/core.rs:624:16 [INFO] [stdout] | [INFO] [stdout] 624 | pub fn nav(&self) -> std::slice::Iter { [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 624 | pub fn nav(&self) -> std::slice::Iter<'_, EpubNav> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/mobi/core.rs:100:21 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn children(&self) -> std::slice::Iter { [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 100 | pub fn children(&self) -> std::slice::Iter<'_, MobiNav> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/mobi/core.rs:252:23 [INFO] [stdout] | [INFO] [stdout] 252 | pub fn assets_mut(&mut self) -> std::slice::IterMut { [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 252 | pub fn assets_mut(&mut self) -> std::slice::IterMut<'_, MobiAssets> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/mobi/core.rs:256:19 [INFO] [stdout] | [INFO] [stdout] 256 | pub fn assets(&self) -> std::slice::Iter { [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 256 | pub fn assets(&self) -> std::slice::Iter<'_, MobiAssets> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/mobi/core.rs:264:25 [INFO] [stdout] | [INFO] [stdout] 264 | pub fn chapters_mut(&mut self) -> std::slice::IterMut { [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 264 | pub fn chapters_mut(&mut self) -> std::slice::IterMut<'_, MobiHtml> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/mobi/core.rs:268:21 [INFO] [stdout] | [INFO] [stdout] 268 | pub fn chapters(&self) -> std::slice::Iter { [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 268 | pub fn chapters(&self) -> std::slice::Iter<'_, MobiHtml> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/mobi/core.rs:276:16 [INFO] [stdout] | [INFO] [stdout] 276 | pub fn nav(&self) -> std::slice::Iter { [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 276 | pub fn nav(&self) -> std::slice::Iter<'_, MobiNav> { [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] [stdout] warning: unused variable: `items` [INFO] [stdout] --> src/mobi/reader.rs:733:17 [INFO] [stdout] | [INFO] [stdout] 733 | 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: methods `set_language` and `get_links` are never used [INFO] [stdout] --> src/epub/core.rs:178:8 [INFO] [stdout] | [INFO] [stdout] 55 | impl EpubHtml { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 178 | fn set_language>(&mut self, lang: T) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 194 | fn get_links(&mut self) -> Option<&mut Vec> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [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:298:1 [INFO] [stdout] | [INFO] [stdout] 298 | / epub_base_field! { [INFO] [stdout] 299 | | /// [INFO] [stdout] 300 | | /// 目录信息 [INFO] [stdout] 301 | | /// [INFO] [stdout] ... | [INFO] [stdout] 305 | | pub struct EpubNav { [INFO] [stdout] | | ------- field in this struct [INFO] [stdout] ... | [INFO] [stdout] 311 | | } [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] [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] [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:153:16 [INFO] [stdout] | [INFO] [stdout] 151 | pub struct MobiAssets { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 152 | pub(crate) _file_name: String, [INFO] [stdout] 153 | 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:288:12 [INFO] [stdout] | [INFO] [stdout] 287 | impl INDXRecord { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 288 | 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:332:4 [INFO] [stdout] | [INFO] [stdout] 332 | 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:341:4 [INFO] [stdout] | [INFO] [stdout] 341 | 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:456:8 [INFO] [stdout] | [INFO] [stdout] 455 | impl NCX { [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] 456 | 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:580:19 [INFO] [stdout] | [INFO] [stdout] 497 | impl MobiReader { [INFO] [stdout] | ---------------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 580 | 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:377:22 [INFO] [stdout] | [INFO] [stdout] 377 | 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:391:12 [INFO] [stdout] | [INFO] [stdout] 390 | pub(crate) trait ReadCount: Read + Seek { [INFO] [stdout] | --------- methods in this trait [INFO] [stdout] 391 | fn read_u8(&mut self) -> IResult { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 444 | 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:25:8 [INFO] [stdout] | [INFO] [stdout] 22 | trait WriteCount: Write { [INFO] [stdout] | ---------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 25 | 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:322:5 [INFO] [stdout] | [INFO] [stdout] 321 | struct PDBRecord { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 322 | index: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 323 | 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:672:8 [INFO] [stdout] | [INFO] [stdout] 465 | impl MobiWriter { [INFO] [stdout] | ----------------------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 672 | 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: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/epub/core.rs:182:18 [INFO] [stdout] | [INFO] [stdout] 182 | pub fn links(&self) -> Option> { [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] 182 | pub fn links(&self) -> Option> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/epub/core.rs:358:18 [INFO] [stdout] | [INFO] [stdout] 358 | pub fn child(&self) -> std::slice::Iter { [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 358 | pub fn child(&self) -> std::slice::Iter<'_, EpubNav> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/epub/core.rs:569:19 [INFO] [stdout] | [INFO] [stdout] 569 | pub fn assets(&self) -> std::slice::Iter { [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 569 | pub fn assets(&self) -> std::slice::Iter<'_, EpubAssets> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/epub/core.rs:573:23 [INFO] [stdout] | [INFO] [stdout] 573 | pub fn assets_mut(&mut self) -> std::slice::IterMut { [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 573 | pub fn assets_mut(&mut self) -> std::slice::IterMut<'_, EpubAssets> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/epub/core.rs:584:25 [INFO] [stdout] | [INFO] [stdout] 584 | pub fn chapters_mut(&mut self) -> std::slice::IterMut { [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 584 | pub fn chapters_mut(&mut self) -> std::slice::IterMut<'_, EpubHtml> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/epub/core.rs:588:21 [INFO] [stdout] | [INFO] [stdout] 588 | pub fn chapters(&self) -> std::slice::Iter { [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 588 | pub fn chapters(&self) -> std::slice::Iter<'_, EpubHtml> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/epub/core.rs:624:16 [INFO] [stdout] | [INFO] [stdout] 624 | pub fn nav(&self) -> std::slice::Iter { [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 624 | pub fn nav(&self) -> std::slice::Iter<'_, EpubNav> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/mobi/core.rs:100:21 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn children(&self) -> std::slice::Iter { [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 100 | pub fn children(&self) -> std::slice::Iter<'_, MobiNav> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/mobi/core.rs:252:23 [INFO] [stdout] | [INFO] [stdout] 252 | pub fn assets_mut(&mut self) -> std::slice::IterMut { [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 252 | pub fn assets_mut(&mut self) -> std::slice::IterMut<'_, MobiAssets> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/mobi/core.rs:256:19 [INFO] [stdout] | [INFO] [stdout] 256 | pub fn assets(&self) -> std::slice::Iter { [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 256 | pub fn assets(&self) -> std::slice::Iter<'_, MobiAssets> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/mobi/core.rs:264:25 [INFO] [stdout] | [INFO] [stdout] 264 | pub fn chapters_mut(&mut self) -> std::slice::IterMut { [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 264 | pub fn chapters_mut(&mut self) -> std::slice::IterMut<'_, MobiHtml> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/mobi/core.rs:268:21 [INFO] [stdout] | [INFO] [stdout] 268 | pub fn chapters(&self) -> std::slice::Iter { [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 268 | pub fn chapters(&self) -> std::slice::Iter<'_, MobiHtml> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/mobi/core.rs:276:16 [INFO] [stdout] | [INFO] [stdout] 276 | pub fn nav(&self) -> std::slice::Iter { [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 276 | pub fn nav(&self) -> std::slice::Iter<'_, MobiNav> { [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] [stdout] warning: function `main1` is never used [INFO] [stdout] --> src/main.rs:71:4 [INFO] [stdout] | [INFO] [stdout] 71 | fn main1() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main1` is never used [INFO] [stdout] --> src/main.rs:71:4 [INFO] [stdout] | [INFO] [stdout] 71 | fn main1() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 28.83s [INFO] running `Command { std: "docker" "inspect" "5d4f3259009801a52c461bb5f9d1780ae51882e4ed0d095cbfe043da23de7ff9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5d4f3259009801a52c461bb5f9d1780ae51882e4ed0d095cbfe043da23de7ff9", kill_on_drop: false }` [INFO] [stdout] 5d4f3259009801a52c461bb5f9d1780ae51882e4ed0d095cbfe043da23de7ff9