[INFO] fetching crate pdf_parser 0.1.0... [INFO] linting pdf_parser-0.1.0 against nightly for clippy-nonminimal_bool-denied [INFO] extracting crate pdf_parser 0.1.0 into /workspace/builds/worker-1-tc1/source [INFO] started tweaking crates.io crate pdf_parser 0.1.0 [INFO] finished tweaking crates.io crate pdf_parser 0.1.0 [INFO] tweaked toml for crates.io crate pdf_parser 0.1.0 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate pdf_parser 0.1.0 on toolchain nightly [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate pdf_parser 0.1.0 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" "+nightly" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded libc v0.2.86 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ac8a4c1dca89a6290e10451a7e142b65897100842d7765ce3040418242a94fe8 [INFO] running `Command { std: "docker" "start" "-a" "ac8a4c1dca89a6290e10451a7e142b65897100842d7765ce3040418242a94fe8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ac8a4c1dca89a6290e10451a7e142b65897100842d7765ce3040418242a94fe8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ac8a4c1dca89a6290e10451a7e142b65897100842d7765ce3040418242a94fe8", kill_on_drop: false }` [INFO] [stdout] ac8a4c1dca89a6290e10451a7e142b65897100842d7765ce3040418242a94fe8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "clippy" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 345b0302a6e00c2704d0207273823778db322787714a04b61c5c64fa9d643508 [INFO] running `Command { std: "docker" "start" "-a" "345b0302a6e00c2704d0207273823778db322787714a04b61c5c64fa9d643508", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling libc v0.2.86 [INFO] [stderr] Compiling crc32fast v1.2.1 [INFO] [stderr] Checking adler v0.2.3 [INFO] [stderr] Checking fast-float v0.2.0 [INFO] [stderr] Compiling miniz_oxide v0.4.3 [INFO] [stderr] Checking flate2 v1.0.20 [INFO] [stderr] Checking pdf_parser v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: can be more succinctly written as a byte str [INFO] [stdout] --> src/date.rs:140:31 [INFO] [stdout] | [INFO] [stdout] 140 | expected: &[b'+', b'-', b'Z'], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: try: `b"+-Z"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#byte_char_slices [INFO] [stdout] = note: `#[warn(clippy::byte_char_slices)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this is a decimal constant [INFO] [stdout] --> src/date.rs:162:30 [INFO] [stdout] | [INFO] [stdout] 162 | second: Some(08), [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#zero_prefixed_literal [INFO] [stdout] = note: `#[warn(clippy::zero_prefixed_literal)]` on by default [INFO] [stdout] help: if you mean to use a decimal constant, remove the `0` to avoid confusion [INFO] [stdout] | [INFO] [stdout] 162 - second: Some(08), [INFO] [stdout] 162 + second: Some(8), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: can be more succinctly written as a byte str [INFO] [stdout] --> src/lex.rs:146:31 [INFO] [stdout] | [INFO] [stdout] 146 | expected: &[b'\n', b'\r'], [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: try: `b"\n\r"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#byte_char_slices [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `crate` references the macro call's crate [INFO] [stdout] --> src/macros.rs:21:41 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn from_str(s: &str) -> crate::PdfResult { [INFO] [stdout] | ^^^^^ help: to reference the macro definition's crate, use: `$crate` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#crate_in_macro_def [INFO] [stdout] = note: `#[warn(clippy::crate_in_macro_def)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `pub(self)` [INFO] [stdout] --> src/postscript/mod.rs:806:1 [INFO] [stdout] | [INFO] [stdout] 806 | pub(self) enum PostscriptOperator { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pub_self [INFO] [stdout] = note: `#[warn(clippy::needless_pub_self)]` on by default [INFO] [stdout] = help: remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: can be more succinctly written as a byte str [INFO] [stdout] --> src/xref/parser.rs:221:43 [INFO] [stdout] | [INFO] [stdout] 221 | ... expected: &[b'f', b'n'], [INFO] [stdout] | ^^^^^^^^^^^^^ help: try: `b"fn"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#byte_char_slices [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: can be more succinctly written as a byte str [INFO] [stdout] --> src/xref/parser.rs:235:35 [INFO] [stdout] | [INFO] [stdout] 235 | expected: &[ [INFO] [stdout] | ___________________________________^ [INFO] [stdout] 236 | | b't', b'0', b'1', b'2', b'3', b'4', b'5', b'6', b'7', b'8', b'9', [INFO] [stdout] 237 | | ], [INFO] [stdout] | |_________________________^ help: try: `b"t0123456789"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#byte_char_slices [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: can be more succinctly written as a byte str [INFO] [stdout] --> src/date.rs:140:31 [INFO] [stdout] | [INFO] [stdout] 140 | expected: &[b'+', b'-', b'Z'], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: try: `b"+-Z"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#byte_char_slices [INFO] [stdout] = note: `#[warn(clippy::byte_char_slices)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: can be more succinctly written as a byte str [INFO] [stdout] --> src/lex.rs:146:31 [INFO] [stdout] | [INFO] [stdout] 146 | expected: &[b'\n', b'\r'], [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: try: `b"\n\r"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#byte_char_slices [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `crate` references the macro call's crate [INFO] [stdout] --> src/macros.rs:21:41 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn from_str(s: &str) -> crate::PdfResult { [INFO] [stdout] | ^^^^^ help: to reference the macro definition's crate, use: `$crate` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#crate_in_macro_def [INFO] [stdout] = note: `#[warn(clippy::crate_in_macro_def)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `pub(self)` [INFO] [stdout] --> src/postscript/mod.rs:806:1 [INFO] [stdout] | [INFO] [stdout] 806 | pub(self) enum PostscriptOperator { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pub_self [INFO] [stdout] = note: `#[warn(clippy::needless_pub_self)]` on by default [INFO] [stdout] = help: remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: can be more succinctly written as a byte str [INFO] [stdout] --> src/xref/parser.rs:221:43 [INFO] [stdout] | [INFO] [stdout] 221 | ... expected: &[b'f', b'n'], [INFO] [stdout] | ^^^^^^^^^^^^^ help: try: `b"fn"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#byte_char_slices [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: can be more succinctly written as a byte str [INFO] [stdout] --> src/xref/parser.rs:235:35 [INFO] [stdout] | [INFO] [stdout] 235 | expected: &[ [INFO] [stdout] | ___________________________________^ [INFO] [stdout] 236 | | b't', b'0', b'1', b'2', b'3', b'4', b'5', b'6', b'7', b'8', b'9', [INFO] [stdout] 237 | | ], [INFO] [stdout] | |_________________________^ help: try: `b"t0123456789"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#byte_char_slices [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/actions/goto.rs:14:76 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn from_dict(mut dict: Dictionary, resolver: &mut impl Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: `#[warn(clippy::result_large_err)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/actions/goto.rs:14:76 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn from_dict(mut dict: Dictionary, resolver: &mut impl Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: `#[warn(clippy::result_large_err)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/actions/goto.rs:43:76 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn from_dict(mut dict: Dictionary, resolver: &mut impl Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/actions/uri.rs:22:75 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn from_dict(mut dict: Dictionary, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: large size difference between variants [INFO] [stdout] --> src/actions/mod.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | / enum Action { [INFO] [stdout] 23 | | GoTo(GoToAction), [INFO] [stdout] | | ---------------- the second-largest variant contains at least 48 bytes [INFO] [stdout] 24 | | GoToRemote(GoToRemoteAction), [INFO] [stdout] | | ---------------------------- the largest variant contains at least 304 bytes [INFO] [stdout] 25 | | Uri(UriAction), [INFO] [stdout] 26 | | } [INFO] [stdout] | |_^ the entire enum is at least 304 bytes [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant [INFO] [stdout] = note: `#[warn(clippy::large_enum_variant)]` on by default [INFO] [stdout] help: consider boxing the large fields or introducing indirection in some other way to reduce the total size of the enum [INFO] [stdout] | [INFO] [stdout] 24 - GoToRemote(GoToRemoteAction), [INFO] [stdout] 24 + GoToRemote(Box), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/actions/mod.rs:31:76 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn from_dict(mut dict: Dictionary, resolver: &mut impl Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/actions/mod.rs:35:48 [INFO] [stdout] | [INFO] [stdout] 35 | .get_type_or_arr("Next", resolver, |resolver, obj| { [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 36 | | Actions::from_dict(resolver.assert_dict(obj)?, resolver) [INFO] [stdout] 37 | | })? [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/macros.rs:21:41 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn from_str(s: &str) -> crate::PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/actions/mod.rs:56:1 [INFO] [stdout] | [INFO] [stdout] 56 | / pdf_enum!( [INFO] [stdout] 57 | | #[derive(Debug)] [INFO] [stdout] 58 | | pub enum ActionType { [INFO] [stdout] 59 | | /// Go to a destination in the current document [INFO] [stdout] ... | [INFO] [stdout] 115 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `pdf_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/actions/goto.rs:43:76 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn from_dict(mut dict: Dictionary, resolver: &mut impl Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/actions/uri.rs:22:75 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn from_dict(mut dict: Dictionary, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/macros.rs:21:41 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn from_str(s: &str) -> crate::PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/annotation/link.rs:54:1 [INFO] [stdout] | [INFO] [stdout] 54 | / pdf_enum!( [INFO] [stdout] 55 | | #[derive(Debug)] [INFO] [stdout] 56 | | pub enum HighlightingMode { [INFO] [stdout] 57 | | /// No highlighting [INFO] [stdout] ... | [INFO] [stdout] 69 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `pdf_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `impl` can be derived [INFO] [stdout] --> src/annotation/link.rs:71:1 [INFO] [stdout] | [INFO] [stdout] 71 | / impl Default for HighlightingMode { [INFO] [stdout] 72 | | fn default() -> Self { [INFO] [stdout] 73 | | Self::Invert [INFO] [stdout] 74 | | } [INFO] [stdout] 75 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls [INFO] [stdout] = note: `#[warn(clippy::derivable_impls)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/annotation/link.rs:80:77 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn from_dict(dict: &mut Dictionary, resolver: &mut impl Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/annotation/link.rs:83:18 [INFO] [stdout] | [INFO] [stdout] 83 | .map(|actions| Actions::from_dict(actions, resolver)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: large size difference between variants [INFO] [stdout] --> src/actions/mod.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | / enum Action { [INFO] [stdout] 23 | | GoTo(GoToAction), [INFO] [stdout] | | ---------------- the second-largest variant contains at least 48 bytes [INFO] [stdout] 24 | | GoToRemote(GoToRemoteAction), [INFO] [stdout] | | ---------------------------- the largest variant contains at least 304 bytes [INFO] [stdout] 25 | | Uri(UriAction), [INFO] [stdout] 26 | | } [INFO] [stdout] | |_^ the entire enum is at least 304 bytes [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant [INFO] [stdout] = note: `#[warn(clippy::large_enum_variant)]` on by default [INFO] [stdout] help: consider boxing the large fields or introducing indirection in some other way to reduce the total size of the enum [INFO] [stdout] | [INFO] [stdout] 24 - GoToRemote(GoToRemoteAction), [INFO] [stdout] 24 + GoToRemote(Box), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/annotation/link.rs:88:18 [INFO] [stdout] | [INFO] [stdout] 88 | .map(|dest| Destination::from_obj(dest, resolver)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/annotation/link.rs:100:18 [INFO] [stdout] | [INFO] [stdout] 100 | .map(|dict| UriAction::from_dict(dict, resolver)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/actions/mod.rs:31:76 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn from_dict(mut dict: Dictionary, resolver: &mut impl Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/actions/mod.rs:35:48 [INFO] [stdout] | [INFO] [stdout] 35 | .get_type_or_arr("Next", resolver, |resolver, obj| { [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 36 | | Actions::from_dict(resolver.assert_dict(obj)?, resolver) [INFO] [stdout] 37 | | })? [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/annotation/link.rs:105:18 [INFO] [stdout] | [INFO] [stdout] 105 | .map(|dict| BorderStyle::from_dict(dict, resolver)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/annotation/state.rs:10:42 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn default(state_model: &str) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/annotation/state.rs:23:58 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn with_state(state_model: &str, state: &str) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/macros.rs:21:41 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn from_str(s: &str) -> crate::PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/annotation/state.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | / pdf_enum!( [INFO] [stdout] 34 | | #[derive(Debug)] [INFO] [stdout] 35 | | pub(crate) enum MarkedState { [INFO] [stdout] 36 | | /// The annotation has been marked by the user [INFO] [stdout] ... | [INFO] [stdout] 42 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `pdf_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `impl` can be derived [INFO] [stdout] --> src/annotation/state.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / impl Default for MarkedState { [INFO] [stdout] 45 | | fn default() -> Self { [INFO] [stdout] 46 | | Self::Unmarked [INFO] [stdout] 47 | | } [INFO] [stdout] 48 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/macros.rs:21:41 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn from_str(s: &str) -> crate::PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/annotation/state.rs:50:1 [INFO] [stdout] | [INFO] [stdout] 50 | / pdf_enum!( [INFO] [stdout] 51 | | #[derive(Debug)] [INFO] [stdout] 52 | | pub(crate) enum ReviewState { [INFO] [stdout] 53 | | /// The user agrees with the change [INFO] [stdout] ... | [INFO] [stdout] 68 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `pdf_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `impl` can be derived [INFO] [stdout] --> src/annotation/state.rs:70:1 [INFO] [stdout] | [INFO] [stdout] 70 | / impl Default for ReviewState { [INFO] [stdout] 71 | | fn default() -> Self { [INFO] [stdout] 72 | | Self::None [INFO] [stdout] 73 | | } [INFO] [stdout] 74 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/macros.rs:21:41 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn from_str(s: &str) -> crate::PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/actions/mod.rs:56:1 [INFO] [stdout] | [INFO] [stdout] 56 | / pdf_enum!( [INFO] [stdout] 57 | | #[derive(Debug)] [INFO] [stdout] 58 | | pub enum ActionType { [INFO] [stdout] 59 | | /// Go to a destination in the current document [INFO] [stdout] ... | [INFO] [stdout] 115 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `pdf_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: large size difference between variants [INFO] [stdout] --> src/annotation/subtype.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | / pub(crate) enum AnnotationSubType { [INFO] [stdout] 7 | | Text(TextAnnotation), [INFO] [stdout] | | -------------------- the second-largest variant contains at least 32 bytes [INFO] [stdout] 8 | | Link(LinkAnnotation), [INFO] [stdout] | | -------------------- the largest variant contains at least 504 bytes [INFO] [stdout] 9 | | } [INFO] [stdout] | |_^ the entire enum is at least 504 bytes [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant [INFO] [stdout] help: consider boxing the large fields or introducing indirection in some other way to reduce the total size of the enum [INFO] [stdout] | [INFO] [stdout] 8 - Link(LinkAnnotation), [INFO] [stdout] 8 + Link(Box), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/annotation/subtype.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | ) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/macros.rs:21:41 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn from_str(s: &str) -> crate::PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/annotation/link.rs:54:1 [INFO] [stdout] | [INFO] [stdout] 54 | / pdf_enum!( [INFO] [stdout] 55 | | #[derive(Debug)] [INFO] [stdout] 56 | | pub enum HighlightingMode { [INFO] [stdout] 57 | | /// No highlighting [INFO] [stdout] ... | [INFO] [stdout] 69 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `pdf_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `impl` can be derived [INFO] [stdout] --> src/annotation/link.rs:71:1 [INFO] [stdout] | [INFO] [stdout] 71 | / impl Default for HighlightingMode { [INFO] [stdout] 72 | | fn default() -> Self { [INFO] [stdout] 73 | | Self::Invert [INFO] [stdout] 74 | | } [INFO] [stdout] 75 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls [INFO] [stdout] = note: `#[warn(clippy::derivable_impls)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/annotation/link.rs:80:77 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn from_dict(dict: &mut Dictionary, resolver: &mut impl Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/annotation/link.rs:83:18 [INFO] [stdout] | [INFO] [stdout] 83 | .map(|actions| Actions::from_dict(actions, resolver)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/annotation/link.rs:88:18 [INFO] [stdout] | [INFO] [stdout] 88 | .map(|dest| Destination::from_obj(dest, resolver)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/macros.rs:21:41 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn from_str(s: &str) -> crate::PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/annotation/subtype.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | / pdf_enum!( [INFO] [stdout] 30 | | #[derive(Debug)] [INFO] [stdout] 31 | | pub(super) enum AnnotationSubTypeKind { [INFO] [stdout] 32 | | Text = "Text", [INFO] [stdout] ... | [INFO] [stdout] 59 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `pdf_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/annotation/link.rs:100:18 [INFO] [stdout] | [INFO] [stdout] 100 | .map(|dict| UriAction::from_dict(dict, resolver)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/annotation/link.rs:105:18 [INFO] [stdout] | [INFO] [stdout] 105 | .map(|dict| BorderStyle::from_dict(dict, resolver)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/annotation/state.rs:10:42 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn default(state_model: &str) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/annotation/state.rs:23:58 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn with_state(state_model: &str, state: &str) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/macros.rs:21:41 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn from_str(s: &str) -> crate::PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/annotation/state.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | / pdf_enum!( [INFO] [stdout] 34 | | #[derive(Debug)] [INFO] [stdout] 35 | | pub(crate) enum MarkedState { [INFO] [stdout] 36 | | /// The annotation has been marked by the user [INFO] [stdout] ... | [INFO] [stdout] 42 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `pdf_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `impl` can be derived [INFO] [stdout] --> src/annotation/text.rs:66:1 [INFO] [stdout] | [INFO] [stdout] 66 | / impl Default for TextAnnotationName { [INFO] [stdout] 67 | | fn default() -> Self { [INFO] [stdout] 68 | | Self::Note [INFO] [stdout] 69 | | } [INFO] [stdout] 70 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls [INFO] [stdout] help: replace the manual implementation with a derive attribute and mark the default variant [INFO] [stdout] | [INFO] [stdout] 40 + #[derive(Default)] [INFO] [stdout] 41 | enum TextAnnotationName { [INFO] [stdout] 42 | Comment, [INFO] [stdout] 43 | Key, [INFO] [stdout] 44 ~ #[default] [INFO] [stdout] 45 ~ Note, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `impl` can be derived [INFO] [stdout] --> src/annotation/state.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / impl Default for MarkedState { [INFO] [stdout] 45 | | fn default() -> Self { [INFO] [stdout] 46 | | Self::Unmarked [INFO] [stdout] 47 | | } [INFO] [stdout] 48 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/macros.rs:21:41 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn from_str(s: &str) -> crate::PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/annotation/state.rs:50:1 [INFO] [stdout] | [INFO] [stdout] 50 | / pdf_enum!( [INFO] [stdout] 51 | | #[derive(Debug)] [INFO] [stdout] 52 | | pub(crate) enum ReviewState { [INFO] [stdout] 53 | | /// The user agrees with the change [INFO] [stdout] ... | [INFO] [stdout] 68 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `pdf_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `impl` can be derived [INFO] [stdout] --> src/annotation/state.rs:70:1 [INFO] [stdout] | [INFO] [stdout] 70 | / impl Default for ReviewState { [INFO] [stdout] 71 | | fn default() -> Self { [INFO] [stdout] 72 | | Self::None [INFO] [stdout] 73 | | } [INFO] [stdout] 74 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: large size difference between variants [INFO] [stdout] --> src/annotation/subtype.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | / pub(crate) enum AnnotationSubType { [INFO] [stdout] 7 | | Text(TextAnnotation), [INFO] [stdout] | | -------------------- the second-largest variant contains at least 32 bytes [INFO] [stdout] 8 | | Link(LinkAnnotation), [INFO] [stdout] | | -------------------- the largest variant contains at least 504 bytes [INFO] [stdout] 9 | | } [INFO] [stdout] | |_^ the entire enum is at least 504 bytes [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant [INFO] [stdout] help: consider boxing the large fields or introducing indirection in some other way to reduce the total size of the enum [INFO] [stdout] | [INFO] [stdout] 8 - Link(LinkAnnotation), [INFO] [stdout] 8 + Link(Box), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/annotation/subtype.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | ) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/annotation/text.rs:75:76 [INFO] [stdout] | [INFO] [stdout] 75 | pub fn from_dict(dict: &mut Dictionary, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/annotation/mod.rs:26:76 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn from_dict(mut dict: Dictionary, resolver: &mut impl Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/macros.rs:21:41 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn from_str(s: &str) -> crate::PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/annotation/subtype.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | / pdf_enum!( [INFO] [stdout] 30 | | #[derive(Debug)] [INFO] [stdout] 31 | | pub(super) enum AnnotationSubTypeKind { [INFO] [stdout] 32 | | Text = "Text", [INFO] [stdout] ... | [INFO] [stdout] 59 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `pdf_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `impl` can be derived [INFO] [stdout] --> src/annotation/text.rs:66:1 [INFO] [stdout] | [INFO] [stdout] 66 | / impl Default for TextAnnotationName { [INFO] [stdout] 67 | | fn default() -> Self { [INFO] [stdout] 68 | | Self::Note [INFO] [stdout] 69 | | } [INFO] [stdout] 70 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls [INFO] [stdout] help: replace the manual implementation with a derive attribute and mark the default variant [INFO] [stdout] | [INFO] [stdout] 40 + #[derive(Default)] [INFO] [stdout] 41 | enum TextAnnotationName { [INFO] [stdout] 42 | Comment, [INFO] [stdout] 43 | Key, [INFO] [stdout] 44 ~ #[default] [INFO] [stdout] 45 ~ Note, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/annotation/text.rs:75:76 [INFO] [stdout] | [INFO] [stdout] 75 | pub fn from_dict(dict: &mut Dictionary, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/annotation/mod.rs:210:75 [INFO] [stdout] | [INFO] [stdout] 210 | pub fn from_dict(mut dict: Dictionary, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/macros.rs:21:41 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn from_str(s: &str) -> crate::PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/annotation/mod.rs:217:1 [INFO] [stdout] | [INFO] [stdout] 217 | / pdf_enum!( [INFO] [stdout] 218 | | #[derive(Debug)] [INFO] [stdout] 219 | | enum ReplyType { [INFO] [stdout] 220 | | R = "R", [INFO] [stdout] ... | [INFO] [stdout] 223 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `pdf_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/annotation/mod.rs:26:76 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn from_dict(mut dict: Dictionary, resolver: &mut impl Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/annotation/mod.rs:226:76 [INFO] [stdout] | [INFO] [stdout] 226 | pub fn from_dict(dict: &mut Dictionary, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/annotation/mod.rs:210:75 [INFO] [stdout] | [INFO] [stdout] 210 | pub fn from_dict(mut dict: Dictionary, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/annotation/mod.rs:242:18 [INFO] [stdout] | [INFO] [stdout] 242 | .map(|d| ExternalDataDictionary::from_dict(d, resolver)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/macros.rs:21:41 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn from_str(s: &str) -> crate::PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/annotation/mod.rs:217:1 [INFO] [stdout] | [INFO] [stdout] 217 | / pdf_enum!( [INFO] [stdout] 218 | | #[derive(Debug)] [INFO] [stdout] 219 | | enum ReplyType { [INFO] [stdout] 220 | | R = "R", [INFO] [stdout] ... | [INFO] [stdout] 223 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `pdf_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/annotation/mod.rs:263:76 [INFO] [stdout] | [INFO] [stdout] 263 | pub fn from_dict(dict: &mut Dictionary, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/annotation/mod.rs:226:76 [INFO] [stdout] | [INFO] [stdout] 226 | pub fn from_dict(dict: &mut Dictionary, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/annotation/mod.rs:242:18 [INFO] [stdout] | [INFO] [stdout] 242 | .map(|d| ExternalDataDictionary::from_dict(d, resolver)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/annotation/mod.rs:263:76 [INFO] [stdout] | [INFO] [stdout] 263 | pub fn from_dict(dict: &mut Dictionary, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/annotation/mod.rs:281:18 [INFO] [stdout] | [INFO] [stdout] 281 | .map(|border| Border::from_arr(border, resolver)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/annotation/mod.rs:287:18 [INFO] [stdout] | [INFO] [stdout] 287 | .map(|colors| { [INFO] [stdout] | __________________^ [INFO] [stdout] 288 | | colors [INFO] [stdout] 289 | | .into_iter() [INFO] [stdout] 290 | | .map(|color| resolver.assert_number(color)) [INFO] [stdout] 291 | | .collect::>>() [INFO] [stdout] 292 | | }) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/annotation/mod.rs:281:18 [INFO] [stdout] | [INFO] [stdout] 281 | .map(|border| Border::from_arr(border, resolver)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/annotation/mod.rs:287:18 [INFO] [stdout] | [INFO] [stdout] 287 | .map(|colors| { [INFO] [stdout] | __________________^ [INFO] [stdout] 288 | | colors [INFO] [stdout] 289 | | .into_iter() [INFO] [stdout] 290 | | .map(|color| resolver.assert_number(color)) [INFO] [stdout] 291 | | .collect::>>() [INFO] [stdout] 292 | | }) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/annotation/mod.rs:290:26 [INFO] [stdout] | [INFO] [stdout] 290 | .map(|color| resolver.assert_number(color)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/annotation/mod.rs:290:26 [INFO] [stdout] | [INFO] [stdout] 290 | .map(|color| resolver.assert_number(color)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `impl` can be derived [INFO] [stdout] --> src/annotation/mod.rs:431:1 [INFO] [stdout] | [INFO] [stdout] 431 | / impl Default for AnnotationFlags { [INFO] [stdout] 432 | | fn default() -> Self { [INFO] [stdout] 433 | | Self(0) [INFO] [stdout] 434 | | } [INFO] [stdout] 435 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls [INFO] [stdout] help: replace the manual implementation with a derive attribute [INFO] [stdout] | [INFO] [stdout] 323 + #[derive(Default)] [INFO] [stdout] 324 | pub struct AnnotationFlags(u16); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `impl` can be derived [INFO] [stdout] --> src/annotation/mod.rs:431:1 [INFO] [stdout] | [INFO] [stdout] 431 | / impl Default for AnnotationFlags { [INFO] [stdout] 432 | | fn default() -> Self { [INFO] [stdout] 433 | | Self(0) [INFO] [stdout] 434 | | } [INFO] [stdout] 435 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls [INFO] [stdout] help: replace the manual implementation with a derive attribute [INFO] [stdout] | [INFO] [stdout] 323 + #[derive(Default)] [INFO] [stdout] 324 | pub struct AnnotationFlags(u16); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/annotation/mod.rs:474:75 [INFO] [stdout] | [INFO] [stdout] 474 | pub fn from_dict(mut dict: Dictionary, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/annotation/mod.rs:474:75 [INFO] [stdout] | [INFO] [stdout] 474 | pub fn from_dict(mut dict: Dictionary, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/annotation/mod.rs:481:18 [INFO] [stdout] | [INFO] [stdout] 481 | .map(|arr| LineDashPattern::from_arr(vec![arr, Object::Integer(0)], resolver)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/annotation/mod.rs:481:18 [INFO] [stdout] | [INFO] [stdout] 481 | .map(|arr| LineDashPattern::from_arr(vec![arr, Object::Integer(0)], resolver)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/annotation/mod.rs:532:74 [INFO] [stdout] | [INFO] [stdout] 532 | pub fn from_arr(mut arr: Vec, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/annotation/mod.rs:532:74 [INFO] [stdout] | [INFO] [stdout] 532 | pub fn from_arr(mut arr: Vec, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/catalog.rs:157:73 [INFO] [stdout] | [INFO] [stdout] 157 | pub(crate) fn from_dict(mut dict: Dictionary, lexer: &mut Lexer) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/catalog.rs:168:18 [INFO] [stdout] | [INFO] [stdout] 168 | .map(|dict| ViewerPreferences::from_dict(dict, lexer)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/catalog.rs:186:18 [INFO] [stdout] | [INFO] [stdout] 186 | .map(|obj| OpenAction::from_obj(obj, lexer)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/catalog.rs:157:73 [INFO] [stdout] | [INFO] [stdout] 157 | pub(crate) fn from_dict(mut dict: Dictionary, lexer: &mut Lexer) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/catalog.rs:168:18 [INFO] [stdout] | [INFO] [stdout] 168 | .map(|dict| ViewerPreferences::from_dict(dict, lexer)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/catalog.rs:194:18 [INFO] [stdout] | [INFO] [stdout] 194 | .map(|dict| StructTreeRoot::from_dict(dict, lexer)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/catalog.rs:198:18 [INFO] [stdout] | [INFO] [stdout] 198 | .map(|dict| MarkInformationDictionary::from_dict(dict, lexer)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/catalog.rs:186:18 [INFO] [stdout] | [INFO] [stdout] 186 | .map(|obj| OpenAction::from_obj(obj, lexer)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/catalog.rs:274:73 [INFO] [stdout] | [INFO] [stdout] 274 | pub(crate) fn from_dict(mut dict: Dictionary, lexer: &mut Lexer) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/catalog.rs:194:18 [INFO] [stdout] | [INFO] [stdout] 194 | .map(|dict| StructTreeRoot::from_dict(dict, lexer)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/catalog.rs:198:18 [INFO] [stdout] | [INFO] [stdout] 198 | .map(|dict| MarkInformationDictionary::from_dict(dict, lexer)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/macros.rs:21:41 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn from_str(s: &str) -> crate::PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/catalog.rs:313:1 [INFO] [stdout] | [INFO] [stdout] 313 | / pdf_enum!( [INFO] [stdout] 314 | | /// A name object indicating whether the document [INFO] [stdout] 315 | | /// has been modified to include trapping information [INFO] [stdout] 316 | | #[derive(Debug)] [INFO] [stdout] ... | [INFO] [stdout] 332 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `pdf_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/catalog.rs:274:73 [INFO] [stdout] | [INFO] [stdout] 274 | pub(crate) fn from_dict(mut dict: Dictionary, lexer: &mut Lexer) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `impl` can be derived [INFO] [stdout] --> src/catalog.rs:334:1 [INFO] [stdout] | [INFO] [stdout] 334 | / impl Default for Trapped { [INFO] [stdout] 335 | | fn default() -> Self { [INFO] [stdout] 336 | | Self::Unknown [INFO] [stdout] 337 | | } [INFO] [stdout] 338 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/catalog.rs:353:50 [INFO] [stdout] | [INFO] [stdout] 353 | pub fn assert_len(arr: &[Object], len: usize) -> PdfResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: large size difference between variants [INFO] [stdout] --> src/catalog.rs:365:1 [INFO] [stdout] | [INFO] [stdout] 365 | / pub enum OpenAction { [INFO] [stdout] 366 | | Destination(Destination), [INFO] [stdout] | | ------------------------ the second-largest variant contains at least 48 bytes [INFO] [stdout] 367 | | Actions(Actions), [INFO] [stdout] | | ---------------- the largest variant contains at least 328 bytes [INFO] [stdout] 368 | | } [INFO] [stdout] | |_^ the entire enum is at least 328 bytes [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant [INFO] [stdout] help: consider boxing the large fields or introducing indirection in some other way to reduce the total size of the enum [INFO] [stdout] | [INFO] [stdout] 367 - Actions(Actions), [INFO] [stdout] 367 + Actions(Box), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/catalog.rs:371:56 [INFO] [stdout] | [INFO] [stdout] 371 | pub fn from_obj(obj: Object, lexer: &mut Lexer) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/macros.rs:21:41 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn from_str(s: &str) -> crate::PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/catalog.rs:313:1 [INFO] [stdout] | [INFO] [stdout] 313 | / pdf_enum!( [INFO] [stdout] 314 | | /// A name object indicating whether the document [INFO] [stdout] 315 | | /// has been modified to include trapping information [INFO] [stdout] 316 | | #[derive(Debug)] [INFO] [stdout] ... | [INFO] [stdout] 332 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `pdf_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `impl` can be derived [INFO] [stdout] --> src/catalog.rs:334:1 [INFO] [stdout] | [INFO] [stdout] 334 | / impl Default for Trapped { [INFO] [stdout] 335 | | fn default() -> Self { [INFO] [stdout] 336 | | Self::Unknown [INFO] [stdout] 337 | | } [INFO] [stdout] 338 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/macros.rs:21:41 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn from_str(s: &str) -> crate::PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/catalog.rs:392:1 [INFO] [stdout] | [INFO] [stdout] 392 | / pdf_enum!( [INFO] [stdout] 393 | | #[derive(Debug)] [INFO] [stdout] 394 | | enum MetadataStreamSubtype { [INFO] [stdout] 395 | | Xml = "XML", [INFO] [stdout] 396 | | } [INFO] [stdout] 397 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `pdf_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/catalog.rs:402:75 [INFO] [stdout] | [INFO] [stdout] 402 | pub fn from_stream(mut stream: Stream, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/catalog.rs:353:50 [INFO] [stdout] | [INFO] [stdout] 353 | pub fn assert_len(arr: &[Object], len: usize) -> PdfResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: large size difference between variants [INFO] [stdout] --> src/catalog.rs:365:1 [INFO] [stdout] | [INFO] [stdout] 365 | / pub enum OpenAction { [INFO] [stdout] 366 | | Destination(Destination), [INFO] [stdout] | | ------------------------ the second-largest variant contains at least 48 bytes [INFO] [stdout] 367 | | Actions(Actions), [INFO] [stdout] | | ---------------- the largest variant contains at least 328 bytes [INFO] [stdout] 368 | | } [INFO] [stdout] | |_^ the entire enum is at least 328 bytes [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant [INFO] [stdout] help: consider boxing the large fields or introducing indirection in some other way to reduce the total size of the enum [INFO] [stdout] | [INFO] [stdout] 367 - Actions(Actions), [INFO] [stdout] 367 + Actions(Box), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/catalog.rs:371:56 [INFO] [stdout] | [INFO] [stdout] 371 | pub fn from_obj(obj: Object, lexer: &mut Lexer) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/catalog.rs:433:75 [INFO] [stdout] | [INFO] [stdout] 433 | pub fn from_dict(mut dict: Dictionary, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/macros.rs:21:41 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn from_str(s: &str) -> crate::PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/catalog.rs:392:1 [INFO] [stdout] | [INFO] [stdout] 392 | / pdf_enum!( [INFO] [stdout] 393 | | #[derive(Debug)] [INFO] [stdout] 394 | | enum MetadataStreamSubtype { [INFO] [stdout] 395 | | Xml = "XML", [INFO] [stdout] 396 | | } [INFO] [stdout] 397 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `pdf_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/catalog.rs:456:73 [INFO] [stdout] | [INFO] [stdout] 456 | pub fn from_dict(_dict: Dictionary, _resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/catalog.rs:402:75 [INFO] [stdout] | [INFO] [stdout] 402 | pub fn from_stream(mut stream: Stream, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/catalog.rs:464:73 [INFO] [stdout] | [INFO] [stdout] 464 | pub fn from_dict(_dict: Dictionary, _resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/catalog.rs:473:73 [INFO] [stdout] | [INFO] [stdout] 473 | pub fn from_dict(_dict: Dictionary, _resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/catalog.rs:433:75 [INFO] [stdout] | [INFO] [stdout] 433 | pub fn from_dict(mut dict: Dictionary, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/catalog.rs:456:73 [INFO] [stdout] | [INFO] [stdout] 456 | pub fn from_dict(_dict: Dictionary, _resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/catalog.rs:556:75 [INFO] [stdout] | [INFO] [stdout] 556 | pub fn from_dict(mut dict: Dictionary, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/catalog.rs:464:73 [INFO] [stdout] | [INFO] [stdout] 464 | pub fn from_dict(_dict: Dictionary, _resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/catalog.rs:473:73 [INFO] [stdout] | [INFO] [stdout] 473 | pub fn from_dict(_dict: Dictionary, _resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/catalog.rs:556:75 [INFO] [stdout] | [INFO] [stdout] 556 | pub fn from_dict(mut dict: Dictionary, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/macros.rs:21:41 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn from_str(s: &str) -> crate::PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/catalog.rs:614:1 [INFO] [stdout] | [INFO] [stdout] 614 | / pdf_enum!( [INFO] [stdout] 615 | | /// Specifies the page layout when the document is opened [INFO] [stdout] 616 | | #[derive(Debug)] [INFO] [stdout] 617 | | enum PageLayout { [INFO] [stdout] ... | [INFO] [stdout] 640 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `pdf_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `impl` can be derived [INFO] [stdout] --> src/catalog.rs:642:1 [INFO] [stdout] | [INFO] [stdout] 642 | / impl Default for PageLayout { [INFO] [stdout] 643 | | fn default() -> Self { [INFO] [stdout] 644 | | Self::SinglePage [INFO] [stdout] 645 | | } [INFO] [stdout] 646 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/macros.rs:21:41 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn from_str(s: &str) -> crate::PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/catalog.rs:648:1 [INFO] [stdout] | [INFO] [stdout] 648 | / pdf_enum!( [INFO] [stdout] 649 | | /// A name object specifying how the document shall be [INFO] [stdout] 650 | | /// displayed when opened [INFO] [stdout] 651 | | #[derive(Debug)] [INFO] [stdout] ... | [INFO] [stdout] 673 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `pdf_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `impl` can be derived [INFO] [stdout] --> src/catalog.rs:675:1 [INFO] [stdout] | [INFO] [stdout] 675 | / impl Default for PageMode { [INFO] [stdout] 676 | | fn default() -> Self { [INFO] [stdout] 677 | | Self::UseNone [INFO] [stdout] 678 | | } [INFO] [stdout] 679 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: name `BDC` contains a capitalized acronym [INFO] [stdout] --> src/content/operator.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | BDC = "BDC", [INFO] [stdout] | ^^^ help: consider making the acronym lowercase, except the initial letter: `Bdc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms [INFO] [stdout] = note: `#[warn(clippy::upper_case_acronyms)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: name `BMC` contains a capitalized acronym [INFO] [stdout] --> src/content/operator.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | BMC = "BMC", [INFO] [stdout] | ^^^ help: consider making the acronym lowercase, except the initial letter: `Bmc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: name `EMC` contains a capitalized acronym [INFO] [stdout] --> src/content/operator.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | EMC = "EMC", [INFO] [stdout] | ^^^ help: consider making the acronym lowercase, except the initial letter: `Emc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: name `SCN` contains a capitalized acronym [INFO] [stdout] --> src/content/operator.rs:158:9 [INFO] [stdout] | [INFO] [stdout] 158 | SCN = "SCN", [INFO] [stdout] | ^^^ help: consider making the acronym lowercase, except the initial letter: `Scn` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/macros.rs:21:41 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn from_str(s: &str) -> crate::PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/catalog.rs:614:1 [INFO] [stdout] | [INFO] [stdout] 614 | / pdf_enum!( [INFO] [stdout] 615 | | /// Specifies the page layout when the document is opened [INFO] [stdout] 616 | | #[derive(Debug)] [INFO] [stdout] 617 | | enum PageLayout { [INFO] [stdout] ... | [INFO] [stdout] 640 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `pdf_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `impl` can be derived [INFO] [stdout] --> src/catalog.rs:642:1 [INFO] [stdout] | [INFO] [stdout] 642 | / impl Default for PageLayout { [INFO] [stdout] 643 | | fn default() -> Self { [INFO] [stdout] 644 | | Self::SinglePage [INFO] [stdout] 645 | | } [INFO] [stdout] 646 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/macros.rs:21:41 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn from_str(s: &str) -> crate::PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/catalog.rs:648:1 [INFO] [stdout] | [INFO] [stdout] 648 | / pdf_enum!( [INFO] [stdout] 649 | | /// A name object specifying how the document shall be [INFO] [stdout] 650 | | /// displayed when opened [INFO] [stdout] 651 | | #[derive(Debug)] [INFO] [stdout] ... | [INFO] [stdout] 673 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `pdf_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `impl` can be derived [INFO] [stdout] --> src/catalog.rs:675:1 [INFO] [stdout] | [INFO] [stdout] 675 | / impl Default for PageMode { [INFO] [stdout] 676 | | fn default() -> Self { [INFO] [stdout] 677 | | Self::UseNone [INFO] [stdout] 678 | | } [INFO] [stdout] 679 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: name `BDC` contains a capitalized acronym [INFO] [stdout] --> src/content/operator.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | BDC = "BDC", [INFO] [stdout] | ^^^ help: consider making the acronym lowercase, except the initial letter: `Bdc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms [INFO] [stdout] = note: `#[warn(clippy::upper_case_acronyms)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: name `BMC` contains a capitalized acronym [INFO] [stdout] --> src/content/operator.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | BMC = "BMC", [INFO] [stdout] | ^^^ help: consider making the acronym lowercase, except the initial letter: `Bmc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: name `EMC` contains a capitalized acronym [INFO] [stdout] --> src/content/operator.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | EMC = "EMC", [INFO] [stdout] | ^^^ help: consider making the acronym lowercase, except the initial letter: `Emc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: name `SCN` contains a capitalized acronym [INFO] [stdout] --> src/content/operator.rs:158:9 [INFO] [stdout] | [INFO] [stdout] 158 | SCN = "SCN", [INFO] [stdout] | ^^^ help: consider making the acronym lowercase, except the initial letter: `Scn` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/macros.rs:21:41 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn from_str(s: &str) -> crate::PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/content/operator.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / pdf_enum!( [INFO] [stdout] 4 | | #[derive(Debug)] [INFO] [stdout] 5 | | #[allow(non_camel_case_types)] [INFO] [stdout] 6 | | pub enum Operator { [INFO] [stdout] ... | [INFO] [stdout] 226 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `pdf_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: large size difference between variants [INFO] [stdout] --> src/content/mod.rs:25:1 [INFO] [stdout] | [INFO] [stdout] 25 | / pub enum ContentToken { [INFO] [stdout] 26 | | Object(Object), [INFO] [stdout] | | -------------- the largest variant contains at least 504 bytes [INFO] [stdout] 27 | | Operator(Operator), [INFO] [stdout] | | ------------------ the second-largest variant contains at least 1 bytes [INFO] [stdout] 28 | | } [INFO] [stdout] | |_^ the entire enum is at least 504 bytes [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant [INFO] [stdout] help: consider boxing the large fields or introducing indirection in some other way to reduce the total size of the enum [INFO] [stdout] | [INFO] [stdout] 26 - Object(Object), [INFO] [stdout] 26 + Object(Box), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/macros.rs:21:41 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn from_str(s: &str) -> crate::PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/content/operator.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / pdf_enum!( [INFO] [stdout] 4 | | #[derive(Debug)] [INFO] [stdout] 5 | | #[allow(non_camel_case_types)] [INFO] [stdout] 6 | | pub enum Operator { [INFO] [stdout] ... | [INFO] [stdout] 226 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `pdf_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: large size difference between variants [INFO] [stdout] --> src/content/mod.rs:31:1 [INFO] [stdout] | [INFO] [stdout] 31 | / enum ContentTokenOrUnknownOperator { [INFO] [stdout] 32 | | Token(ContentToken), [INFO] [stdout] | | ------------------- the largest variant contains at least 504 bytes [INFO] [stdout] 33 | | UnknownOperator(String), [INFO] [stdout] | | ----------------------- the second-largest variant contains at least 24 bytes [INFO] [stdout] 34 | | } [INFO] [stdout] | |_^ the entire enum is at least 504 bytes [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant [INFO] [stdout] help: consider boxing the large fields or introducing indirection in some other way to reduce the total size of the enum [INFO] [stdout] | [INFO] [stdout] 32 - Token(ContentToken), [INFO] [stdout] 32 + Token(Box), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: large size difference between variants [INFO] [stdout] --> src/content/mod.rs:25:1 [INFO] [stdout] | [INFO] [stdout] 25 | / pub enum ContentToken { [INFO] [stdout] 26 | | Object(Object), [INFO] [stdout] | | -------------- the largest variant contains at least 504 bytes [INFO] [stdout] 27 | | Operator(Operator), [INFO] [stdout] | | ------------------ the second-largest variant contains at least 1 bytes [INFO] [stdout] 28 | | } [INFO] [stdout] | |_^ the entire enum is at least 504 bytes [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant [INFO] [stdout] help: consider boxing the large fields or introducing indirection in some other way to reduce the total size of the enum [INFO] [stdout] | [INFO] [stdout] 26 - Object(Object), [INFO] [stdout] 26 + Object(Box), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/content/mod.rs:77:39 [INFO] [stdout] | [INFO] [stdout] 77 | fn try_lex_operator(&mut self) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: large size difference between variants [INFO] [stdout] --> src/content/mod.rs:31:1 [INFO] [stdout] | [INFO] [stdout] 31 | / enum ContentTokenOrUnknownOperator { [INFO] [stdout] 32 | | Token(ContentToken), [INFO] [stdout] | | ------------------- the largest variant contains at least 504 bytes [INFO] [stdout] 33 | | UnknownOperator(String), [INFO] [stdout] | | ----------------------- the second-largest variant contains at least 24 bytes [INFO] [stdout] 34 | | } [INFO] [stdout] | |_^ the entire enum is at least 504 bytes [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant [INFO] [stdout] help: consider boxing the large fields or introducing indirection in some other way to reduce the total size of the enum [INFO] [stdout] | [INFO] [stdout] 32 - Token(ContentToken), [INFO] [stdout] 32 + Token(Box), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/content/mod.rs:131:15 [INFO] [stdout] | [INFO] [stdout] 131 | fn buffer<'a>(&'a self) -> &'a [u8] { [INFO] [stdout] | ^^ ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] = note: `#[warn(clippy::needless_lifetimes)]` on by default [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 131 - fn buffer<'a>(&'a self) -> &'a [u8] { [INFO] [stdout] 131 + fn buffer(&self) -> &[u8] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/content/mod.rs:77:39 [INFO] [stdout] | [INFO] [stdout] 77 | fn try_lex_operator(&mut self) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/data_structures/matrix.rs:25:74 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn from_arr(mut arr: Vec, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/content/mod.rs:131:15 [INFO] [stdout] | [INFO] [stdout] 131 | fn buffer<'a>(&'a self) -> &'a [u8] { [INFO] [stdout] | ^^ ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] = note: `#[warn(clippy::needless_lifetimes)]` on by default [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 131 - fn buffer<'a>(&'a self) -> &'a [u8] { [INFO] [stdout] 131 + fn buffer(&self) -> &[u8] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/data_structures/name_tree.rs:7:73 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn from_dict(_dict: Dictionary, _resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/data_structures/matrix.rs:25:74 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn from_arr(mut arr: Vec, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/data_structures/number_tree.rs:22:6 [INFO] [stdout] | [INFO] [stdout] 22 | ) -> PdfResult>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/data_structures/number_tree.rs:24:14 [INFO] [stdout] | [INFO] [stdout] 24 | .map(|num| { [INFO] [stdout] | ______________^ [INFO] [stdout] 25 | | num.chunks_exact(2) [INFO] [stdout] 26 | | .map(|nums| { [INFO] [stdout] 27 | | let num = resolver.assert_integer(nums[0].clone())?; [INFO] [stdout] ... | [INFO] [stdout] 32 | | .collect::>>() [INFO] [stdout] 33 | | }) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/data_structures/number_tree.rs:26:22 [INFO] [stdout] | [INFO] [stdout] 26 | .map(|nums| { [INFO] [stdout] | ______________________^ [INFO] [stdout] 27 | | let num = resolver.assert_integer(nums[0].clone())?; [INFO] [stdout] 28 | | let obj = resolver.resolve(nums[1].clone())?; [INFO] [stdout] ... | [INFO] [stdout] 31 | | }) [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/data_structures/name_tree.rs:7:73 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn from_dict(_dict: Dictionary, _resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/data_structures/number_tree.rs:38:75 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn from_dict(mut dict: Dictionary, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/data_structures/number_tree.rs:22:6 [INFO] [stdout] | [INFO] [stdout] 22 | ) -> PdfResult>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/data_structures/number_tree.rs:24:14 [INFO] [stdout] | [INFO] [stdout] 24 | .map(|num| { [INFO] [stdout] | ______________^ [INFO] [stdout] 25 | | num.chunks_exact(2) [INFO] [stdout] 26 | | .map(|nums| { [INFO] [stdout] 27 | | let num = resolver.assert_integer(nums[0].clone())?; [INFO] [stdout] ... | [INFO] [stdout] 32 | | .collect::>>() [INFO] [stdout] 33 | | }) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/data_structures/number_tree.rs:26:22 [INFO] [stdout] | [INFO] [stdout] 26 | .map(|nums| { [INFO] [stdout] | ______________________^ [INFO] [stdout] 27 | | let num = resolver.assert_integer(nums[0].clone())?; [INFO] [stdout] 28 | | let obj = resolver.resolve(nums[1].clone())?; [INFO] [stdout] ... | [INFO] [stdout] 31 | | }) [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/data_structures/number_tree.rs:38:75 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn from_dict(mut dict: Dictionary, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/data_structures/number_tree.rs:91:74 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn from_arr(mut arr: Vec, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/data_structures/rectangle.rs:12:81 [INFO] [stdout] | [INFO] [stdout] 12 | pub(crate) fn from_arr(mut arr: Vec, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/data_structures/number_tree.rs:91:74 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn from_arr(mut arr: Vec, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/data_structures/rectangle.rs:12:81 [INFO] [stdout] | [INFO] [stdout] 12 | pub(crate) fn from_arr(mut arr: Vec, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/date.rs:21:40 [INFO] [stdout] | [INFO] [stdout] 21 | pub(crate) fn from_str(s: &str) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/date.rs:91:20 [INFO] [stdout] | [INFO] [stdout] 91 | if !chars.peek().is_none() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `chars.peek().is_some()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/date.rs:21:40 [INFO] [stdout] | [INFO] [stdout] 21 | pub(crate) fn from_str(s: &str) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/date.rs:91:20 [INFO] [stdout] | [INFO] [stdout] 91 | if !chars.peek().is_none() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `chars.peek().is_some()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/date.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | / match chars.peek().cloned() { [INFO] [stdout] 88 | | Some(b'\'') => { [INFO] [stdout] 89 | | chars.next(); [INFO] [stdout] ... | [INFO] [stdout] 98 | | _ => {} [INFO] [stdout] 99 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] = note: `#[warn(clippy::single_match)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 87 ~ if let Some(b'\'') = chars.peek().cloned() { [INFO] [stdout] 88 + chars.next(); [INFO] [stdout] 89 + [INFO] [stdout] 90 + if !chars.peek().is_none() { [INFO] [stdout] 91 + return Err(ParseError::MismatchedByte { [INFO] [stdout] 92 + expected: b'\'', [INFO] [stdout] 93 + found: chars.next(), [INFO] [stdout] 94 + }); [INFO] [stdout] 95 + } [INFO] [stdout] 96 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/date.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | / match chars.peek().cloned() { [INFO] [stdout] 88 | | Some(b'\'') => { [INFO] [stdout] 89 | | chars.next(); [INFO] [stdout] ... | [INFO] [stdout] 98 | | _ => {} [INFO] [stdout] 99 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] = note: `#[warn(clippy::single_match)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 87 ~ if let Some(b'\'') = chars.peek().cloned() { [INFO] [stdout] 88 + chars.next(); [INFO] [stdout] 89 + [INFO] [stdout] 90 + if !chars.peek().is_none() { [INFO] [stdout] 91 + return Err(ParseError::MismatchedByte { [INFO] [stdout] 92 + expected: b'\'', [INFO] [stdout] 93 + found: chars.next(), [INFO] [stdout] 94 + }); [INFO] [stdout] 95 + } [INFO] [stdout] 96 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/date.rs:133:32 [INFO] [stdout] | [INFO] [stdout] 133 | pub fn from_byte(b: u8) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/destination.rs:25:66 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn from_obj(obj: Object, resolver: &mut impl Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/date.rs:133:32 [INFO] [stdout] | [INFO] [stdout] 133 | pub fn from_byte(b: u8) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/destination.rs:48:75 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn from_arr(mut arr: Vec, resolver: &mut impl Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/destination.rs:61:18 [INFO] [stdout] | [INFO] [stdout] 61 | .map(|obj| resolver.assert_or_null(obj, Resolve::assert_number)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/destination.rs:25:66 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn from_obj(obj: Object, resolver: &mut impl Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/destination.rs:48:75 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn from_arr(mut arr: Vec, resolver: &mut impl Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: large size difference between variants [INFO] [stdout] --> src/file_specification.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | / pub enum FileSpecification { [INFO] [stdout] 11 | | Simple(FileSpecificationString), [INFO] [stdout] | | ------------------------------- the second-largest variant contains at least 24 bytes [INFO] [stdout] 12 | | Full(FullFileSpecification), [INFO] [stdout] | | --------------------------- the largest variant contains at least 248 bytes [INFO] [stdout] 13 | | } [INFO] [stdout] | |_^ the entire enum is at least 248 bytes [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant [INFO] [stdout] help: consider boxing the large fields or introducing indirection in some other way to reduce the total size of the enum [INFO] [stdout] | [INFO] [stdout] 12 - Full(FullFileSpecification), [INFO] [stdout] 12 + Full(Box), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/file_specification.rs:16:65 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn from_obj(obj: Object, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/destination.rs:61:18 [INFO] [stdout] | [INFO] [stdout] 61 | .map(|obj| resolver.assert_or_null(obj, Resolve::assert_number)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/file_specification.rs:107:82 [INFO] [stdout] | [INFO] [stdout] 107 | pub(crate) fn from_dict(mut dict: Dictionary, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_specification.rs:122:18 [INFO] [stdout] | [INFO] [stdout] 122 | .map(|objs| FileIdentifier::from_arr(objs, resolver)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: large size difference between variants [INFO] [stdout] --> src/file_specification.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | / pub enum FileSpecification { [INFO] [stdout] 11 | | Simple(FileSpecificationString), [INFO] [stdout] | | ------------------------------- the second-largest variant contains at least 24 bytes [INFO] [stdout] 12 | | Full(FullFileSpecification), [INFO] [stdout] | | --------------------------- the largest variant contains at least 248 bytes [INFO] [stdout] 13 | | } [INFO] [stdout] | |_^ the entire enum is at least 248 bytes [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant [INFO] [stdout] help: consider boxing the large fields or introducing indirection in some other way to reduce the total size of the enum [INFO] [stdout] | [INFO] [stdout] 12 - Full(FullFileSpecification), [INFO] [stdout] 12 + Full(Box), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/file_specification.rs:16:65 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn from_obj(obj: Object, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/file_specification.rs:171:70 [INFO] [stdout] | [INFO] [stdout] 171 | pub fn from_arr(arr: Vec, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/file_specification.rs:107:82 [INFO] [stdout] | [INFO] [stdout] 107 | pub(crate) fn from_dict(mut dict: Dictionary, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_specification.rs:122:18 [INFO] [stdout] | [INFO] [stdout] 122 | .map(|objs| FileIdentifier::from_arr(objs, resolver)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_specification.rs:174:44 [INFO] [stdout] | [INFO] [stdout] 174 | let mut iter = arr.into_iter().map(|obj| resolver.assert_string(obj)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: importing legacy numeric constants [INFO] [stdout] --> src/filter/flate.rs:1:44 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{borrow::Cow, cmp::min, io::Read, usize}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: remove this import [INFO] [stdout] = note: then `usize::` will resolve to the respective associated constant [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: `#[warn(clippy::legacy_numeric_constants)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/filter/flate.rs:54:75 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn from_dict(mut dict: Dictionary, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/file_specification.rs:171:70 [INFO] [stdout] | [INFO] [stdout] 171 | pub fn from_arr(arr: Vec, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_specification.rs:174:44 [INFO] [stdout] | [INFO] [stdout] 174 | let mut iter = arr.into_iter().map(|obj| resolver.assert_string(obj)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/filter/flate.rs:111:36 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn from_integer(i: i32) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/macros.rs:51:44 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn from_integer(s: i32) -> crate::PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/filter/flate.rs:130:1 [INFO] [stdout] | [INFO] [stdout] 130 | / pdf_enum!( [INFO] [stdout] 131 | | int [INFO] [stdout] 132 | | #[derive(Debug, Clone, Copy)] [INFO] [stdout] 133 | | pub enum BitsPerComponent { [INFO] [stdout] ... | [INFO] [stdout] 140 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `pdf_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: importing legacy numeric constants [INFO] [stdout] --> src/filter/flate.rs:1:44 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{borrow::Cow, cmp::min, io::Read, usize}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: remove this import [INFO] [stdout] = note: then `usize::` will resolve to the respective associated constant [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: `#[warn(clippy::legacy_numeric_constants)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/filter/flate.rs:54:75 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn from_dict(mut dict: Dictionary, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/filter/flate.rs:111:36 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn from_integer(i: i32) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/macros.rs:51:44 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn from_integer(s: i32) -> crate::PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/filter/flate.rs:130:1 [INFO] [stdout] | [INFO] [stdout] 130 | / pdf_enum!( [INFO] [stdout] 131 | | int [INFO] [stdout] 132 | | #[derive(Debug, Clone, Copy)] [INFO] [stdout] 133 | | pub enum BitsPerComponent { [INFO] [stdout] ... | [INFO] [stdout] 140 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `pdf_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/filter/mod.rs:20:6 [INFO] [stdout] | [INFO] [stdout] 20 | ) -> PdfResult> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/macros.rs:21:41 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn from_str(s: &str) -> crate::PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/filter/mod.rs:64:1 [INFO] [stdout] | [INFO] [stdout] 64 | / pdf_enum!( [INFO] [stdout] 65 | | #[derive(Debug, Clone)] [INFO] [stdout] 66 | | pub enum FilterKind { [INFO] [stdout] 67 | | /// Decodes data encoded in an ASCII hexadecimal representation, reproducing [INFO] [stdout] ... | [INFO] [stdout] 109 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `pdf_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/font/cid.rs:35:75 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn from_dict(mut dict: Dictionary, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/font/cid.rs:102:75 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn from_dict(mut dict: Dictionary, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/font/cid.rs:112:27 [INFO] [stdout] | [INFO] [stdout] 112 | .map(|arr| -> PdfResult<[f32; 2]> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/font/cid.rs:117:26 [INFO] [stdout] | [INFO] [stdout] 117 | .map(|obj| resolver.assert_number(obj)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/filter/mod.rs:20:6 [INFO] [stdout] | [INFO] [stdout] 20 | ) -> PdfResult> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/font/cid.rs:127:18 [INFO] [stdout] | [INFO] [stdout] 127 | .map(|obj| CidToGidMap::from_obj(obj, resolver)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: large size difference between variants [INFO] [stdout] --> src/font/cid.rs:145:1 [INFO] [stdout] | [INFO] [stdout] 145 | / enum CidToGidMap { [INFO] [stdout] 146 | | Identity, [INFO] [stdout] | | -------- the second-largest variant carries no data at all [INFO] [stdout] 147 | | Stream(Stream), [INFO] [stdout] | | -------------- the largest variant contains at least 504 bytes [INFO] [stdout] 148 | | } [INFO] [stdout] | |_^ the entire enum is at least 504 bytes [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant [INFO] [stdout] help: consider boxing the large fields or introducing indirection in some other way to reduce the total size of the enum [INFO] [stdout] | [INFO] [stdout] 147 - Stream(Stream), [INFO] [stdout] 147 + Stream(Box), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/font/cid.rs:151:65 [INFO] [stdout] | [INFO] [stdout] 151 | pub fn from_obj(obj: Object, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/macros.rs:21:41 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn from_str(s: &str) -> crate::PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/filter/mod.rs:64:1 [INFO] [stdout] | [INFO] [stdout] 64 | / pdf_enum!( [INFO] [stdout] 65 | | #[derive(Debug, Clone)] [INFO] [stdout] 66 | | pub enum FilterKind { [INFO] [stdout] 67 | | /// Decodes data encoded in an ASCII hexadecimal representation, reproducing [INFO] [stdout] ... | [INFO] [stdout] 109 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `pdf_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/font/descriptor.rs:122:75 [INFO] [stdout] | [INFO] [stdout] 122 | pub fn from_dict(mut dict: Dictionary, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/font/cid.rs:35:75 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn from_dict(mut dict: Dictionary, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/font/descriptor.rs:134:18 [INFO] [stdout] | [INFO] [stdout] 134 | .map(|n| FontWeight::from_integer(n as i32)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/font/cid.rs:102:75 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn from_dict(mut dict: Dictionary, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/font/descriptor.rs:152:18 [INFO] [stdout] | [INFO] [stdout] 152 | .map(|stream| Type1FontFile::from_stream(stream, resolver)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/font/descriptor.rs:156:18 [INFO] [stdout] | [INFO] [stdout] 156 | .map(|stream| TrueTypeFontFile::from_stream(stream, resolver)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/font/descriptor.rs:160:18 [INFO] [stdout] | [INFO] [stdout] 160 | .map(|stream| Type3FontFile::from_stream(stream, resolver)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/font/cid.rs:112:27 [INFO] [stdout] | [INFO] [stdout] 112 | .map(|arr| -> PdfResult<[f32; 2]> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/font/cid.rs:117:26 [INFO] [stdout] | [INFO] [stdout] 117 | .map(|obj| resolver.assert_number(obj)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/font/cid.rs:127:18 [INFO] [stdout] | [INFO] [stdout] 127 | .map(|obj| CidToGidMap::from_obj(obj, resolver)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: large size difference between variants [INFO] [stdout] --> src/font/cid.rs:145:1 [INFO] [stdout] | [INFO] [stdout] 145 | / enum CidToGidMap { [INFO] [stdout] 146 | | Identity, [INFO] [stdout] | | -------- the second-largest variant carries no data at all [INFO] [stdout] 147 | | Stream(Stream), [INFO] [stdout] | | -------------- the largest variant contains at least 504 bytes [INFO] [stdout] 148 | | } [INFO] [stdout] | |_^ the entire enum is at least 504 bytes [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant [INFO] [stdout] help: consider boxing the large fields or introducing indirection in some other way to reduce the total size of the enum [INFO] [stdout] | [INFO] [stdout] 147 - Stream(Stream), [INFO] [stdout] 147 + Stream(Box), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: all variants have the same postfix: `Hundred` [INFO] [stdout] --> src/macros.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | / $vis enum $name { [INFO] [stdout] 44 | | $( [INFO] [stdout] 45 | | $(#[$doc])* [INFO] [stdout] 46 | | $variant = $val [INFO] [stdout] 47 | | ),*, [INFO] [stdout] 48 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] ::: src/font/descriptor.rs:268:1 [INFO] [stdout] | [INFO] [stdout] 268 | / pdf_enum!( [INFO] [stdout] 269 | | int [INFO] [stdout] 270 | | #[derive(Debug)] [INFO] [stdout] 271 | | enum FontWeight { [INFO] [stdout] ... | [INFO] [stdout] 288 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: remove the postfixes and use full paths to the variants instead of glob imports [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#enum_variant_names [INFO] [stdout] = note: `#[warn(clippy::enum_variant_names)]` on by default [INFO] [stdout] = note: this warning originates in the macro `pdf_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/font/cid.rs:151:65 [INFO] [stdout] | [INFO] [stdout] 151 | pub fn from_obj(obj: Object, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/macros.rs:51:44 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn from_integer(s: i32) -> crate::PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/font/descriptor.rs:268:1 [INFO] [stdout] | [INFO] [stdout] 268 | / pdf_enum!( [INFO] [stdout] 269 | | int [INFO] [stdout] 270 | | #[derive(Debug)] [INFO] [stdout] 271 | | enum FontWeight { [INFO] [stdout] ... | [INFO] [stdout] 288 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `pdf_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/macros.rs:21:41 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn from_str(s: &str) -> crate::PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/font/descriptor.rs:290:1 [INFO] [stdout] | [INFO] [stdout] 290 | / pdf_enum!( [INFO] [stdout] 291 | | #[derive(Debug)] [INFO] [stdout] 292 | | enum FontStretch { [INFO] [stdout] 293 | | UltraCondensed = "UltraCondensed", [INFO] [stdout] ... | [INFO] [stdout] 303 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `pdf_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/font/embedded.rs:28:76 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn from_dict(dict: &mut Dictionary, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/font/embedded.rs:34:18 [INFO] [stdout] | [INFO] [stdout] 34 | .map(|stream| MetadataStream::from_stream(stream, resolver)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/font/embedded.rs:56:75 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn from_stream(mut stream: Stream, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/font/descriptor.rs:122:75 [INFO] [stdout] | [INFO] [stdout] 122 | pub fn from_dict(mut dict: Dictionary, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/font/embedded.rs:72:75 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn from_stream(mut stream: Stream, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/font/descriptor.rs:134:18 [INFO] [stdout] | [INFO] [stdout] 134 | .map(|n| FontWeight::from_integer(n as i32)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/font/descriptor.rs:152:18 [INFO] [stdout] | [INFO] [stdout] 152 | .map(|stream| Type1FontFile::from_stream(stream, resolver)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/font/descriptor.rs:156:18 [INFO] [stdout] | [INFO] [stdout] 156 | .map(|stream| TrueTypeFontFile::from_stream(stream, resolver)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/font/descriptor.rs:160:18 [INFO] [stdout] | [INFO] [stdout] 160 | .map(|stream| Type3FontFile::from_stream(stream, resolver)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: all variants have the same postfix: `Hundred` [INFO] [stdout] --> src/macros.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | / $vis enum $name { [INFO] [stdout] 44 | | $( [INFO] [stdout] 45 | | $(#[$doc])* [INFO] [stdout] 46 | | $variant = $val [INFO] [stdout] 47 | | ),*, [INFO] [stdout] 48 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] ::: src/font/descriptor.rs:268:1 [INFO] [stdout] | [INFO] [stdout] 268 | / pdf_enum!( [INFO] [stdout] 269 | | int [INFO] [stdout] 270 | | #[derive(Debug)] [INFO] [stdout] 271 | | enum FontWeight { [INFO] [stdout] ... | [INFO] [stdout] 288 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: remove the postfixes and use full paths to the variants instead of glob imports [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#enum_variant_names [INFO] [stdout] = note: `#[warn(clippy::enum_variant_names)]` on by default [INFO] [stdout] = note: this warning originates in the macro `pdf_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/macros.rs:51:44 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn from_integer(s: i32) -> crate::PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/font/descriptor.rs:268:1 [INFO] [stdout] | [INFO] [stdout] 268 | / pdf_enum!( [INFO] [stdout] 269 | | int [INFO] [stdout] 270 | | #[derive(Debug)] [INFO] [stdout] 271 | | enum FontWeight { [INFO] [stdout] ... | [INFO] [stdout] 288 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `pdf_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/macros.rs:21:41 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn from_str(s: &str) -> crate::PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/font/descriptor.rs:290:1 [INFO] [stdout] | [INFO] [stdout] 290 | / pdf_enum!( [INFO] [stdout] 291 | | #[derive(Debug)] [INFO] [stdout] 292 | | enum FontStretch { [INFO] [stdout] 293 | | UltraCondensed = "UltraCondensed", [INFO] [stdout] ... | [INFO] [stdout] 303 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `pdf_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/font/embedded.rs:28:76 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn from_dict(dict: &mut Dictionary, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/font/embedded.rs:34:18 [INFO] [stdout] | [INFO] [stdout] 34 | .map(|stream| MetadataStream::from_stream(stream, resolver)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/font/embedded.rs:56:75 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn from_stream(mut stream: Stream, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/font/embedded.rs:72:75 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn from_stream(mut stream: Stream, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item overindented [INFO] [stdout] --> src/font/embedded.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 111 | /// contains a “glyf” table. In addition to the “glyf” table, the font program must include these [INFO] [stdout] | ^^^^^ help: try using ` ` (4 spaces) [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items [INFO] [stdout] = note: `#[warn(clippy::doc_overindented_list_items)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item overindented [INFO] [stdout] --> src/font/embedded.rs:112:5 [INFO] [stdout] | [INFO] [stdout] 112 | /// tables: “head”, “hhea”, “hmtx”, “loca”, and “maxp”. The “cvt ” (notice the trailing SPACE), “fpgm”, [INFO] [stdout] | ^^^^^ help: try using ` ` (4 spaces) [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item overindented [INFO] [stdout] --> src/font/embedded.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 113 | /// and “prep” tables must also be included if they are required by the font instructions. [INFO] [stdout] | ^^^^^ help: try using ` ` (4 spaces) [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item overindented [INFO] [stdout] --> src/font/embedded.rs:115:5 [INFO] [stdout] | [INFO] [stdout] 115 | /// the trailing SPACE) with a Top DICT that uses CIDFont operators (this is equivalent to subtype [INFO] [stdout] | ^^^^^ help: try using ` ` (4 spaces) [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item overindented [INFO] [stdout] --> src/font/embedded.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | /// CIDFontType0C). In addition to the “CFF ” table, the font program must include the “cmap” table. [INFO] [stdout] | ^^^^^ help: try using ` ` (4 spaces) [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item overindented [INFO] [stdout] --> src/font/embedded.rs:118:5 [INFO] [stdout] | [INFO] [stdout] 118 | /// a “CFF ” table without CIDFont operators. In addition to the “CFF ” table, the font program must [INFO] [stdout] | ^^^^^ help: try using ` ` (4 spaces) [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item overindented [INFO] [stdout] --> src/font/embedded.rs:119:5 [INFO] [stdout] | [INFO] [stdout] 119 | /// include the “cmap” table. The OpenType Specification describes a set of required tables; however, [INFO] [stdout] | ^^^^^ help: try using ` ` (4 spaces) [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item overindented [INFO] [stdout] --> src/font/embedded.rs:120:5 [INFO] [stdout] | [INFO] [stdout] 120 | /// not all tables are required in the font file, as described for each type of font dictionary that [INFO] [stdout] | ^^^^^ help: try using ` ` (4 spaces) [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item overindented [INFO] [stdout] --> src/font/embedded.rs:121:5 [INFO] [stdout] | [INFO] [stdout] 121 | /// can include this entry. [INFO] [stdout] | ^^^^^ help: try using ` ` (4 spaces) [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/macros.rs:21:41 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn from_str(s: &str) -> crate::PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/font/embedded.rs:131:1 [INFO] [stdout] | [INFO] [stdout] 131 | / pdf_enum!( [INFO] [stdout] 132 | | enum Type3Subtype { [INFO] [stdout] 133 | | Type1C = "Type1C", [INFO] [stdout] 134 | | CIDFontType0C = "CIDFontType0C", [INFO] [stdout] ... | [INFO] [stdout] 137 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `pdf_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/font/embedded.rs:140:75 [INFO] [stdout] | [INFO] [stdout] 140 | pub fn from_stream(mut stream: Stream, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/font/embedded.rs:158:75 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn from_stream(mut stream: Stream, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item overindented [INFO] [stdout] --> src/font/embedded.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 111 | /// contains a “glyf” table. In addition to the “glyf” table, the font program must include these [INFO] [stdout] | ^^^^^ help: try using ` ` (4 spaces) [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items [INFO] [stdout] = note: `#[warn(clippy::doc_overindented_list_items)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item overindented [INFO] [stdout] --> src/font/embedded.rs:112:5 [INFO] [stdout] | [INFO] [stdout] 112 | /// tables: “head”, “hhea”, “hmtx”, “loca”, and “maxp”. The “cvt ” (notice the trailing SPACE), “fpgm”, [INFO] [stdout] | ^^^^^ help: try using ` ` (4 spaces) [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item overindented [INFO] [stdout] --> src/font/embedded.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 113 | /// and “prep” tables must also be included if they are required by the font instructions. [INFO] [stdout] | ^^^^^ help: try using ` ` (4 spaces) [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item overindented [INFO] [stdout] --> src/font/embedded.rs:115:5 [INFO] [stdout] | [INFO] [stdout] 115 | /// the trailing SPACE) with a Top DICT that uses CIDFont operators (this is equivalent to subtype [INFO] [stdout] | ^^^^^ help: try using ` ` (4 spaces) [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item overindented [INFO] [stdout] --> src/font/embedded.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | /// CIDFontType0C). In addition to the “CFF ” table, the font program must include the “cmap” table. [INFO] [stdout] | ^^^^^ help: try using ` ` (4 spaces) [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item overindented [INFO] [stdout] --> src/font/embedded.rs:118:5 [INFO] [stdout] | [INFO] [stdout] 118 | /// a “CFF ” table without CIDFont operators. In addition to the “CFF ” table, the font program must [INFO] [stdout] | ^^^^^ help: try using ` ` (4 spaces) [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item overindented [INFO] [stdout] --> src/font/embedded.rs:119:5 [INFO] [stdout] | [INFO] [stdout] 119 | /// include the “cmap” table. The OpenType Specification describes a set of required tables; however, [INFO] [stdout] | ^^^^^ help: try using ` ` (4 spaces) [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item overindented [INFO] [stdout] --> src/font/embedded.rs:120:5 [INFO] [stdout] | [INFO] [stdout] 120 | /// not all tables are required in the font file, as described for each type of font dictionary that [INFO] [stdout] | ^^^^^ help: try using ` ` (4 spaces) [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item overindented [INFO] [stdout] --> src/font/embedded.rs:121:5 [INFO] [stdout] | [INFO] [stdout] 121 | /// can include this entry. [INFO] [stdout] | ^^^^^ help: try using ` ` (4 spaces) [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/macros.rs:21:41 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn from_str(s: &str) -> crate::PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/font/embedded.rs:131:1 [INFO] [stdout] | [INFO] [stdout] 131 | / pdf_enum!( [INFO] [stdout] 132 | | enum Type3Subtype { [INFO] [stdout] 133 | | Type1C = "Type1C", [INFO] [stdout] 134 | | CIDFontType0C = "CIDFontType0C", [INFO] [stdout] ... | [INFO] [stdout] 137 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `pdf_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/font/embedded.rs:140:75 [INFO] [stdout] | [INFO] [stdout] 140 | pub fn from_stream(mut stream: Stream, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/font/embedded.rs:166:75 [INFO] [stdout] | [INFO] [stdout] 166 | pub fn from_stream(mut stream: Stream, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/font/embedded.rs:174:75 [INFO] [stdout] | [INFO] [stdout] 174 | pub fn from_stream(mut stream: Stream, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/font/encoding.rs:16:65 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn from_obj(obj: Object, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/font/embedded.rs:158:75 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn from_stream(mut stream: Stream, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: all variants have the same postfix: `Encoding` [INFO] [stdout] --> src/macros.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | / $vis enum $name { [INFO] [stdout] 14 | | $( [INFO] [stdout] 15 | | $(#[$doc])* [INFO] [stdout] 16 | | $variant [INFO] [stdout] 17 | | ),*, [INFO] [stdout] 18 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] ::: src/font/encoding.rs:32:1 [INFO] [stdout] | [INFO] [stdout] 32 | / pdf_enum!( [INFO] [stdout] 33 | | #[derive(Debug)] [INFO] [stdout] 34 | | pub enum BaseFontEncoding { [INFO] [stdout] 35 | | /// Mac OS standard encoding for Latin text in Western writing systems. [INFO] [stdout] ... | [INFO] [stdout] 56 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: remove the postfixes and use full paths to the variants instead of glob imports [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#enum_variant_names [INFO] [stdout] = note: this warning originates in the macro `pdf_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/font/embedded.rs:166:75 [INFO] [stdout] | [INFO] [stdout] 166 | pub fn from_stream(mut stream: Stream, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/macros.rs:21:41 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn from_str(s: &str) -> crate::PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/font/encoding.rs:32:1 [INFO] [stdout] | [INFO] [stdout] 32 | / pdf_enum!( [INFO] [stdout] 33 | | #[derive(Debug)] [INFO] [stdout] 34 | | pub enum BaseFontEncoding { [INFO] [stdout] 35 | | /// Mac OS standard encoding for Latin text in Western writing systems. [INFO] [stdout] ... | [INFO] [stdout] 56 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `pdf_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/font/embedded.rs:174:75 [INFO] [stdout] | [INFO] [stdout] 174 | pub fn from_stream(mut stream: Stream, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/font/encoding.rs:78:75 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn from_dict(mut dict: Dictionary, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/font/encoding.rs:16:65 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn from_obj(obj: Object, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/font/encoding.rs:100:74 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn from_arr(mut arr: Vec, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: all variants have the same postfix: `Encoding` [INFO] [stdout] --> src/macros.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | / $vis enum $name { [INFO] [stdout] 14 | | $( [INFO] [stdout] 15 | | $(#[$doc])* [INFO] [stdout] 16 | | $variant [INFO] [stdout] 17 | | ),*, [INFO] [stdout] 18 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] ::: src/font/encoding.rs:32:1 [INFO] [stdout] | [INFO] [stdout] 32 | / pdf_enum!( [INFO] [stdout] 33 | | #[derive(Debug)] [INFO] [stdout] 34 | | pub enum BaseFontEncoding { [INFO] [stdout] 35 | | /// Mac OS standard encoding for Latin text in Western writing systems. [INFO] [stdout] ... | [INFO] [stdout] 56 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: remove the postfixes and use full paths to the variants instead of glob imports [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#enum_variant_names [INFO] [stdout] = note: this warning originates in the macro `pdf_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/macros.rs:21:41 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn from_str(s: &str) -> crate::PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/font/encoding.rs:32:1 [INFO] [stdout] | [INFO] [stdout] 32 | / pdf_enum!( [INFO] [stdout] 33 | | #[derive(Debug)] [INFO] [stdout] 34 | | pub enum BaseFontEncoding { [INFO] [stdout] 35 | | /// Mac OS standard encoding for Latin text in Western writing systems. [INFO] [stdout] ... | [INFO] [stdout] 56 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `pdf_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item overindented [INFO] [stdout] --> src/font/true_type.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | /// by which the font is known in the host operating system. On a Windows system, the name shall be based [INFO] [stdout] | ^^^^^ help: try using ` ` (4 spaces) [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item overindented [INFO] [stdout] --> src/font/true_type.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | /// on the lfFaceName field in a LOGFONT structure; in the Mac OS, it shall be based on the name of the FOND [INFO] [stdout] | ^^^^^ help: try using ` ` (4 spaces) [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item overindented [INFO] [stdout] --> src/font/true_type.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | /// resource. If the name contains any SPACEs, the SPACEs shall be removed. [INFO] [stdout] | ^^^^^ help: try using ` ` (4 spaces) [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/font/true_type.rs:26:75 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn from_dict(mut dict: Dictionary, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/font/true_type.rs:31:18 [INFO] [stdout] | [INFO] [stdout] 31 | .map(|obj| FontEncoding::from_obj(obj, resolver)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/font/encoding.rs:78:75 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn from_dict(mut dict: Dictionary, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/font/type0.rs:33:75 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn from_dict(mut dict: Dictionary, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/font/encoding.rs:100:74 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn from_arr(mut arr: Vec, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/font/type1/mod.rs:35:75 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn from_dict(mut dict: Dictionary, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item overindented [INFO] [stdout] --> src/font/true_type.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | /// by which the font is known in the host operating system. On a Windows system, the name shall be based [INFO] [stdout] | ^^^^^ help: try using ` ` (4 spaces) [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item overindented [INFO] [stdout] --> src/font/true_type.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | /// on the lfFaceName field in a LOGFONT structure; in the Mac OS, it shall be based on the name of the FOND [INFO] [stdout] | ^^^^^ help: try using ` ` (4 spaces) [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item overindented [INFO] [stdout] --> src/font/true_type.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | /// resource. If the name contains any SPACEs, the SPACEs shall be removed. [INFO] [stdout] | ^^^^^ help: try using ` ` (4 spaces) [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/font/type1/mod.rs:40:18 [INFO] [stdout] | [INFO] [stdout] 40 | .map(|obj| FontEncoding::from_obj(obj, resolver)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/font/true_type.rs:26:75 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn from_dict(mut dict: Dictionary, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/font/type1/mod.rs:65:71 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn from_dict(dict: Dictionary, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/font/true_type.rs:31:18 [INFO] [stdout] | [INFO] [stdout] 31 | .map(|obj| FontEncoding::from_obj(obj, resolver)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/font/type0.rs:33:75 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn from_dict(mut dict: Dictionary, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/font/type3.rs:62:75 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn from_dict(mut dict: Dictionary, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/font/type3.rs:69:18 [INFO] [stdout] | [INFO] [stdout] 69 | .map(|(key, obj)| Ok((key, resolver.assert_stream(obj)?))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/font/type3.rs:74:18 [INFO] [stdout] | [INFO] [stdout] 74 | .map(|dict| Resources::from_dict(dict, resolver)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/font/type1/mod.rs:35:75 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn from_dict(mut dict: Dictionary, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/font/type1/mod.rs:40:18 [INFO] [stdout] | [INFO] [stdout] 40 | .map(|obj| FontEncoding::from_obj(obj, resolver)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/font/mod.rs:35:75 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn from_dict(mut dict: Dictionary, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/font/type1/mod.rs:65:71 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn from_dict(dict: Dictionary, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/font/type3.rs:62:75 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn from_dict(mut dict: Dictionary, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/font/type3.rs:69:18 [INFO] [stdout] | [INFO] [stdout] 69 | .map(|(key, obj)| Ok((key, resolver.assert_stream(obj)?))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/font/mod.rs:91:76 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn from_dict(dict: &mut Dictionary, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/font/type3.rs:74:18 [INFO] [stdout] | [INFO] [stdout] 74 | .map(|dict| Resources::from_dict(dict, resolver)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/font/mod.rs:98:18 [INFO] [stdout] | [INFO] [stdout] 98 | .map(|obj| resolver.assert_number(obj)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/font/mod.rs:35:75 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn from_dict(mut dict: Dictionary, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/macros.rs:21:41 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn from_str(s: &str) -> crate::PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/font/mod.rs:113:1 [INFO] [stdout] | [INFO] [stdout] 113 | / pdf_enum!( [INFO] [stdout] 114 | | #[derive(Debug, Clone, Copy)] [INFO] [stdout] 115 | | enum FontSubtype { [INFO] [stdout] 116 | | /// A composite font -- a font composed of glyphs from a descendant CIDFont [INFO] [stdout] ... | [INFO] [stdout] 138 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `pdf_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/function/exponential_interpolation.rs:23:76 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_dict(dict: &mut Dictionary, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/function/exponential_interpolation.rs:26:18 [INFO] [stdout] | [INFO] [stdout] 26 | .map(|arr| { [INFO] [stdout] | __________________^ [INFO] [stdout] 27 | | arr.into_iter() [INFO] [stdout] 28 | | .map(|obj| resolver.assert_number(obj)) [INFO] [stdout] 29 | | .collect::>>() [INFO] [stdout] 30 | | }) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/font/mod.rs:91:76 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn from_dict(dict: &mut Dictionary, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/font/mod.rs:98:18 [INFO] [stdout] | [INFO] [stdout] 98 | .map(|obj| resolver.assert_number(obj)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/function/exponential_interpolation.rs:28:26 [INFO] [stdout] | [INFO] [stdout] 28 | .map(|obj| resolver.assert_number(obj)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/function/exponential_interpolation.rs:36:18 [INFO] [stdout] | [INFO] [stdout] 36 | .map(|arr| { [INFO] [stdout] | __________________^ [INFO] [stdout] 37 | | arr.into_iter() [INFO] [stdout] 38 | | .map(|obj| resolver.assert_number(obj)) [INFO] [stdout] 39 | | .collect::>>() [INFO] [stdout] 40 | | }) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/function/exponential_interpolation.rs:38:26 [INFO] [stdout] | [INFO] [stdout] 38 | .map(|obj| resolver.assert_number(obj)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/macros.rs:21:41 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn from_str(s: &str) -> crate::PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/font/mod.rs:113:1 [INFO] [stdout] | [INFO] [stdout] 113 | / pdf_enum!( [INFO] [stdout] 114 | | #[derive(Debug, Clone, Copy)] [INFO] [stdout] 115 | | enum FontSubtype { [INFO] [stdout] 116 | | /// A composite font -- a font composed of glyphs from a descendant CIDFont [INFO] [stdout] ... | [INFO] [stdout] 138 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `pdf_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/function/exponential_interpolation.rs:23:76 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_dict(dict: &mut Dictionary, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/macros.rs:21:41 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn from_str(s: &str) -> crate::PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/function/postscript_calculator/lexer.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | / pdf_enum!( [INFO] [stdout] 23 | | #[derive(Debug)] [INFO] [stdout] 24 | | pub(crate) enum PostScriptFunctionOperator { [INFO] [stdout] ... | [INFO] [stdout] 75 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `pdf_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/function/exponential_interpolation.rs:26:18 [INFO] [stdout] | [INFO] [stdout] 26 | .map(|arr| { [INFO] [stdout] | __________________^ [INFO] [stdout] 27 | | arr.into_iter() [INFO] [stdout] 28 | | .map(|obj| resolver.assert_number(obj)) [INFO] [stdout] 29 | | .collect::>>() [INFO] [stdout] 30 | | }) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/function/exponential_interpolation.rs:28:26 [INFO] [stdout] | [INFO] [stdout] 28 | .map(|obj| resolver.assert_number(obj)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/function/exponential_interpolation.rs:36:18 [INFO] [stdout] | [INFO] [stdout] 36 | .map(|arr| { [INFO] [stdout] | __________________^ [INFO] [stdout] 37 | | arr.into_iter() [INFO] [stdout] 38 | | .map(|obj| resolver.assert_number(obj)) [INFO] [stdout] 39 | | .collect::>>() [INFO] [stdout] 40 | | }) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/function/exponential_interpolation.rs:38:26 [INFO] [stdout] | [INFO] [stdout] 38 | .map(|obj| resolver.assert_number(obj)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/macros.rs:21:41 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn from_str(s: &str) -> crate::PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/function/postscript_calculator/lexer.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | / pdf_enum!( [INFO] [stdout] 23 | | #[derive(Debug)] [INFO] [stdout] 24 | | pub(crate) enum PostScriptFunctionOperator { [INFO] [stdout] ... | [INFO] [stdout] 75 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `pdf_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/function/postscript_calculator/mod.rs:16:71 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn from_stream(stream: Stream, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/function/postscript_calculator/mod.rs:16:71 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn from_stream(stream: Stream, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/function/sampled.rs:39:75 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn from_stream(mut stream: Stream, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/function/sampled.rs:44:18 [INFO] [stdout] | [INFO] [stdout] 44 | .map(|obj| resolver.assert_unsigned_integer(obj)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/function/sampled.rs:39:75 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn from_stream(mut stream: Stream, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/function/sampled.rs:44:18 [INFO] [stdout] | [INFO] [stdout] 44 | .map(|obj| resolver.assert_unsigned_integer(obj)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/function/sampled.rs:52:18 [INFO] [stdout] | [INFO] [stdout] 52 | .map(|arr| { [INFO] [stdout] | __________________^ [INFO] [stdout] 53 | | arr.into_iter() [INFO] [stdout] 54 | | .map(|obj| resolver.assert_number(obj)) [INFO] [stdout] 55 | | .collect::>>() [INFO] [stdout] 56 | | }) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/function/sampled.rs:52:18 [INFO] [stdout] | [INFO] [stdout] 52 | .map(|arr| { [INFO] [stdout] | __________________^ [INFO] [stdout] 53 | | arr.into_iter() [INFO] [stdout] 54 | | .map(|obj| resolver.assert_number(obj)) [INFO] [stdout] 55 | | .collect::>>() [INFO] [stdout] 56 | | }) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/function/sampled.rs:54:26 [INFO] [stdout] | [INFO] [stdout] 54 | .map(|obj| resolver.assert_number(obj)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/function/sampled.rs:65:18 [INFO] [stdout] | [INFO] [stdout] 65 | .map(|arr| { [INFO] [stdout] | __________________^ [INFO] [stdout] 66 | | arr.into_iter() [INFO] [stdout] 67 | | .map(|obj| resolver.assert_number(obj)) [INFO] [stdout] 68 | | .collect::>>() [INFO] [stdout] 69 | | }) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/function/sampled.rs:67:26 [INFO] [stdout] | [INFO] [stdout] 67 | .map(|obj| resolver.assert_number(obj)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/function/sampled.rs:54:26 [INFO] [stdout] | [INFO] [stdout] 54 | .map(|obj| resolver.assert_number(obj)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/function/sampled.rs:65:18 [INFO] [stdout] | [INFO] [stdout] 65 | .map(|arr| { [INFO] [stdout] | __________________^ [INFO] [stdout] 66 | | arr.into_iter() [INFO] [stdout] 67 | | .map(|obj| resolver.assert_number(obj)) [INFO] [stdout] 68 | | .collect::>>() [INFO] [stdout] 69 | | }) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/function/sampled.rs:67:26 [INFO] [stdout] | [INFO] [stdout] 67 | .map(|obj| resolver.assert_number(obj)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/macros.rs:51:44 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn from_integer(s: i32) -> crate::PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/function/sampled.rs:83:1 [INFO] [stdout] | [INFO] [stdout] 83 | / pdf_enum!( [INFO] [stdout] 84 | | int [INFO] [stdout] 85 | | #[derive(Debug)] [INFO] [stdout] 86 | | enum InterpolationOrder { [INFO] [stdout] ... | [INFO] [stdout] 90 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `pdf_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `impl` can be derived [INFO] [stdout] --> src/function/sampled.rs:92:1 [INFO] [stdout] | [INFO] [stdout] 92 | / impl Default for InterpolationOrder { [INFO] [stdout] 93 | | fn default() -> Self { [INFO] [stdout] 94 | | Self::Linear [INFO] [stdout] 95 | | } [INFO] [stdout] 96 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/macros.rs:51:44 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn from_integer(s: i32) -> crate::PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/function/sampled.rs:83:1 [INFO] [stdout] | [INFO] [stdout] 83 | / pdf_enum!( [INFO] [stdout] 84 | | int [INFO] [stdout] 85 | | #[derive(Debug)] [INFO] [stdout] 86 | | enum InterpolationOrder { [INFO] [stdout] ... | [INFO] [stdout] 90 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `pdf_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `impl` can be derived [INFO] [stdout] --> src/function/sampled.rs:92:1 [INFO] [stdout] | [INFO] [stdout] 92 | / impl Default for InterpolationOrder { [INFO] [stdout] 93 | | fn default() -> Self { [INFO] [stdout] 94 | | Self::Linear [INFO] [stdout] 95 | | } [INFO] [stdout] 96 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/macros.rs:51:44 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn from_integer(s: i32) -> crate::PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/function/sampled.rs:98:1 [INFO] [stdout] | [INFO] [stdout] 98 | / pdf_enum!( [INFO] [stdout] 99 | | int [INFO] [stdout] 100 | | #[derive(Debug, Clone, Copy)] [INFO] [stdout] 101 | | enum BitsPerSample { [INFO] [stdout] ... | [INFO] [stdout] 111 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `pdf_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/macros.rs:51:44 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn from_integer(s: i32) -> crate::PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/function/sampled.rs:98:1 [INFO] [stdout] | [INFO] [stdout] 98 | / pdf_enum!( [INFO] [stdout] 99 | | int [INFO] [stdout] 100 | | #[derive(Debug, Clone, Copy)] [INFO] [stdout] 101 | | enum BitsPerSample { [INFO] [stdout] ... | [INFO] [stdout] 111 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `pdf_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/function/stitching.rs:26:76 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn from_dict(dict: &mut Dictionary, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/function/stitching.rs:26:76 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn from_dict(dict: &mut Dictionary, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/function/stitching.rs:30:18 [INFO] [stdout] | [INFO] [stdout] 30 | .map(|obj| Function::from_obj(obj, resolver)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/function/stitching.rs:36:18 [INFO] [stdout] | [INFO] [stdout] 36 | .map(|obj| resolver.assert_number(obj)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/function/stitching.rs:30:18 [INFO] [stdout] | [INFO] [stdout] 30 | .map(|obj| Function::from_obj(obj, resolver)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/function/stitching.rs:42:18 [INFO] [stdout] | [INFO] [stdout] 42 | .map(|obj| resolver.assert_number(obj)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/function/stitching.rs:36:18 [INFO] [stdout] | [INFO] [stdout] 36 | .map(|obj| resolver.assert_number(obj)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/function/stitching.rs:42:18 [INFO] [stdout] | [INFO] [stdout] 42 | .map(|obj| resolver.assert_number(obj)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: large size difference between variants [INFO] [stdout] --> src/function/mod.rs:41:1 [INFO] [stdout] | [INFO] [stdout] 41 | / pub(crate) enum StreamOrDict { [INFO] [stdout] 42 | | Stream(Stream), [INFO] [stdout] | | -------------- the largest variant contains at least 504 bytes [INFO] [stdout] 43 | | Dict(Dictionary), [INFO] [stdout] | | ---------------- the second-largest variant contains at least 48 bytes [INFO] [stdout] 44 | | } [INFO] [stdout] | |_^ the entire enum is at least 504 bytes [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant [INFO] [stdout] help: consider boxing the large fields or introducing indirection in some other way to reduce the total size of the enum [INFO] [stdout] | [INFO] [stdout] 42 - Stream(Stream), [INFO] [stdout] 42 + Stream(Box), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: large size difference between variants [INFO] [stdout] --> src/function/mod.rs:41:1 [INFO] [stdout] | [INFO] [stdout] 41 | / pub(crate) enum StreamOrDict { [INFO] [stdout] 42 | | Stream(Stream), [INFO] [stdout] | | -------------- the largest variant contains at least 504 bytes [INFO] [stdout] 43 | | Dict(Dictionary), [INFO] [stdout] | | ---------------- the second-largest variant contains at least 48 bytes [INFO] [stdout] 44 | | } [INFO] [stdout] | |_^ the entire enum is at least 504 bytes [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant [INFO] [stdout] help: consider boxing the large fields or introducing indirection in some other way to reduce the total size of the enum [INFO] [stdout] | [INFO] [stdout] 42 - Stream(Stream), [INFO] [stdout] 42 + Stream(Box), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/function/mod.rs:54:35 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn expect_stream(self) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/function/mod.rs:54:35 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn expect_stream(self) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/function/mod.rs:66:65 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn from_obj(obj: Object, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/function/mod.rs:66:65 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn from_obj(obj: Object, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/function/mod.rs:80:18 [INFO] [stdout] | [INFO] [stdout] 80 | .map(|obj| resolver.assert_number(obj)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/function/mod.rs:84:18 [INFO] [stdout] | [INFO] [stdout] 84 | .map(|arr| { [INFO] [stdout] | __________________^ [INFO] [stdout] 85 | | arr.into_iter() [INFO] [stdout] 86 | | .map(|obj| resolver.assert_number(obj)) [INFO] [stdout] 87 | | .collect::>>() [INFO] [stdout] 88 | | }) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/function/mod.rs:86:26 [INFO] [stdout] | [INFO] [stdout] 86 | .map(|obj| resolver.assert_number(obj)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/function/mod.rs:80:18 [INFO] [stdout] | [INFO] [stdout] 80 | .map(|obj| resolver.assert_number(obj)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: large size difference between variants [INFO] [stdout] --> src/function/mod.rs:102:1 [INFO] [stdout] | [INFO] [stdout] 102 | / enum FunctionSubtype { [INFO] [stdout] 103 | | Sampled(SampledFunction), [INFO] [stdout] | | ------------------------ the largest variant contains at least 584 bytes [INFO] [stdout] 104 | | ExponentialInterpolation(ExponentialInterpolationFunction), [INFO] [stdout] 105 | | Stitching(StitchingFunction), [INFO] [stdout] | | ---------------------------- the second-largest variant contains at least 72 bytes [INFO] [stdout] 106 | | PostScriptCalculator(PostScriptCalculatorFunction), [INFO] [stdout] 107 | | } [INFO] [stdout] | |_^ the entire enum is at least 584 bytes [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant [INFO] [stdout] help: consider boxing the large fields or introducing indirection in some other way to reduce the total size of the enum [INFO] [stdout] | [INFO] [stdout] 103 - Sampled(SampledFunction), [INFO] [stdout] 103 + Sampled(Box), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/function/mod.rs:113:10 [INFO] [stdout] | [INFO] [stdout] 113 | ) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/function/mod.rs:84:18 [INFO] [stdout] | [INFO] [stdout] 84 | .map(|arr| { [INFO] [stdout] | __________________^ [INFO] [stdout] 85 | | arr.into_iter() [INFO] [stdout] 86 | | .map(|obj| resolver.assert_number(obj)) [INFO] [stdout] 87 | | .collect::>>() [INFO] [stdout] 88 | | }) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/macros.rs:51:44 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn from_integer(s: i32) -> crate::PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/function/mod.rs:138:1 [INFO] [stdout] | [INFO] [stdout] 138 | / pdf_enum!( [INFO] [stdout] 139 | | int [INFO] [stdout] 140 | | #[derive(Debug, Clone, Copy)] [INFO] [stdout] 141 | | enum FunctionType { [INFO] [stdout] ... | [INFO] [stdout] 147 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `pdf_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: large size difference between variants [INFO] [stdout] --> src/function/mod.rs:150:1 [INFO] [stdout] | [INFO] [stdout] 150 | / pub enum SpotFunction { [INFO] [stdout] 151 | | Predefined(PredefinedSpotFunction), [INFO] [stdout] | | ---------------------------------- the second-largest variant contains at least 1 bytes [INFO] [stdout] 152 | | Function(Function), [INFO] [stdout] | | ------------------ the largest variant contains at least 632 bytes [INFO] [stdout] 153 | | } [INFO] [stdout] | |_^ the entire enum is at least 632 bytes [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant [INFO] [stdout] help: consider boxing the large fields or introducing indirection in some other way to reduce the total size of the enum [INFO] [stdout] | [INFO] [stdout] 152 - Function(Function), [INFO] [stdout] 152 + Function(Box), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/function/mod.rs:156:65 [INFO] [stdout] | [INFO] [stdout] 156 | pub fn from_obj(obj: Object, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/function/mod.rs:86:26 [INFO] [stdout] | [INFO] [stdout] 86 | .map(|obj| resolver.assert_number(obj)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: large size difference between variants [INFO] [stdout] --> src/function/mod.rs:102:1 [INFO] [stdout] | [INFO] [stdout] 102 | / enum FunctionSubtype { [INFO] [stdout] 103 | | Sampled(SampledFunction), [INFO] [stdout] | | ------------------------ the largest variant contains at least 584 bytes [INFO] [stdout] 104 | | ExponentialInterpolation(ExponentialInterpolationFunction), [INFO] [stdout] 105 | | Stitching(StitchingFunction), [INFO] [stdout] | | ---------------------------- the second-largest variant contains at least 72 bytes [INFO] [stdout] 106 | | PostScriptCalculator(PostScriptCalculatorFunction), [INFO] [stdout] 107 | | } [INFO] [stdout] | |_^ the entire enum is at least 584 bytes [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant [INFO] [stdout] help: consider boxing the large fields or introducing indirection in some other way to reduce the total size of the enum [INFO] [stdout] | [INFO] [stdout] 103 - Sampled(SampledFunction), [INFO] [stdout] 103 + Sampled(Box), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/function/mod.rs:113:10 [INFO] [stdout] | [INFO] [stdout] 113 | ) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/macros.rs:51:44 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn from_integer(s: i32) -> crate::PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/function/mod.rs:138:1 [INFO] [stdout] | [INFO] [stdout] 138 | / pdf_enum!( [INFO] [stdout] 139 | | int [INFO] [stdout] 140 | | #[derive(Debug, Clone, Copy)] [INFO] [stdout] 141 | | enum FunctionType { [INFO] [stdout] ... | [INFO] [stdout] 147 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `pdf_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: large size difference between variants [INFO] [stdout] --> src/function/mod.rs:150:1 [INFO] [stdout] | [INFO] [stdout] 150 | / pub enum SpotFunction { [INFO] [stdout] 151 | | Predefined(PredefinedSpotFunction), [INFO] [stdout] | | ---------------------------------- the second-largest variant contains at least 1 bytes [INFO] [stdout] 152 | | Function(Function), [INFO] [stdout] | | ------------------ the largest variant contains at least 632 bytes [INFO] [stdout] 153 | | } [INFO] [stdout] | |_^ the entire enum is at least 632 bytes [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant [INFO] [stdout] help: consider boxing the large fields or introducing indirection in some other way to reduce the total size of the enum [INFO] [stdout] | [INFO] [stdout] 152 - Function(Function), [INFO] [stdout] 152 + Function(Box), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/macros.rs:21:41 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn from_str(s: &str) -> crate::PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/function/mod.rs:165:1 [INFO] [stdout] | [INFO] [stdout] 165 | / pdf_enum!( [INFO] [stdout] 166 | | #[derive(Debug)] [INFO] [stdout] 167 | | pub enum PredefinedSpotFunction { [INFO] [stdout] 168 | | SimpleDot = "SimpleDot", [INFO] [stdout] ... | [INFO] [stdout] 189 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `pdf_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: large size difference between variants [INFO] [stdout] --> src/function/mod.rs:192:1 [INFO] [stdout] | [INFO] [stdout] 192 | / pub enum TransferFunction { [INFO] [stdout] 193 | | Identity, [INFO] [stdout] 194 | | Default, [INFO] [stdout] 195 | | Single(Function), [INFO] [stdout] | | ---------------- the second-largest variant contains at least 632 bytes [INFO] [stdout] 196 | |/ Colorants { [INFO] [stdout] 197 | || a: Function, [INFO] [stdout] 198 | || b: Function, [INFO] [stdout] 199 | || c: Function, [INFO] [stdout] 200 | || d: Function, [INFO] [stdout] 201 | || }, [INFO] [stdout] | ||_____- the largest variant contains at least 2528 bytes [INFO] [stdout] 202 | | } [INFO] [stdout] | |__^ the entire enum is at least 2528 bytes [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant [INFO] [stdout] help: consider boxing the large fields or introducing indirection in some other way to reduce the total size of the enum [INFO] [stdout] | [INFO] [stdout] 198 ~ b: Box, [INFO] [stdout] 199 ~ c: Box, [INFO] [stdout] 200 ~ d: Box, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/function/mod.rs:156:65 [INFO] [stdout] | [INFO] [stdout] 156 | pub fn from_obj(obj: Object, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/macros.rs:21:41 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn from_str(s: &str) -> crate::PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/function/mod.rs:165:1 [INFO] [stdout] | [INFO] [stdout] 165 | / pdf_enum!( [INFO] [stdout] 166 | | #[derive(Debug)] [INFO] [stdout] 167 | | pub enum PredefinedSpotFunction { [INFO] [stdout] 168 | | SimpleDot = "SimpleDot", [INFO] [stdout] ... | [INFO] [stdout] 189 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `pdf_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: large size difference between variants [INFO] [stdout] --> src/function/mod.rs:192:1 [INFO] [stdout] | [INFO] [stdout] 192 | / pub enum TransferFunction { [INFO] [stdout] 193 | | Identity, [INFO] [stdout] 194 | | Default, [INFO] [stdout] 195 | | Single(Function), [INFO] [stdout] | | ---------------- the second-largest variant contains at least 632 bytes [INFO] [stdout] 196 | |/ Colorants { [INFO] [stdout] 197 | || a: Function, [INFO] [stdout] 198 | || b: Function, [INFO] [stdout] 199 | || c: Function, [INFO] [stdout] 200 | || d: Function, [INFO] [stdout] 201 | || }, [INFO] [stdout] | ||_____- the largest variant contains at least 2528 bytes [INFO] [stdout] 202 | | } [INFO] [stdout] | |__^ the entire enum is at least 2528 bytes [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant [INFO] [stdout] help: consider boxing the large fields or introducing indirection in some other way to reduce the total size of the enum [INFO] [stdout] | [INFO] [stdout] 198 ~ b: Box, [INFO] [stdout] 199 ~ c: Box, [INFO] [stdout] 200 ~ d: Box, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/function/mod.rs:206:65 [INFO] [stdout] | [INFO] [stdout] 206 | pub fn from_obj(obj: Object, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: large size difference between variants [INFO] [stdout] --> src/halftones.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | / pub enum Halftones { [INFO] [stdout] 12 | | Default, [INFO] [stdout] | | ------- the second-largest variant carries no data at all [INFO] [stdout] 13 | | Dictionary(HalftoneDictionary), [INFO] [stdout] | | ------------------------------ the largest variant contains at least 3176 bytes [INFO] [stdout] 14 | | Stream(HalftoneStream), [INFO] [stdout] 15 | | } [INFO] [stdout] | |_^ the entire enum is at least 3176 bytes [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant [INFO] [stdout] help: consider boxing the large fields or introducing indirection in some other way to reduce the total size of the enum [INFO] [stdout] | [INFO] [stdout] 13 - Dictionary(HalftoneDictionary), [INFO] [stdout] 13 + Dictionary(Box), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/halftones.rs:18:65 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn from_obj(obj: Object, resolver: &mut dyn Resolve) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/halftones.rs:39:44 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn from_stream(_stream: Stream) -> PdfResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / MismatchedObjectType { [INFO] [stdout] 24 | | expected: ObjectType, [INFO] [stdout] 25 | | found: Object, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |_____- the variant `MismatchedObjectType` contains at least 505 bytes [INFO] [stdout] 27 | / MismatchedObjectTypeAny { [INFO] [stdout] 28 | | expected: &'static [ObjectType], [INFO] [stdout] 29 | | found: Object, [INFO] [stdout] 30 | | }, [INFO] [stdout] | |_____- the largest variant contains at least 520 bytes [INFO] [stdout] 31 | / InvalidDictionaryValueForKey { [INFO] [stdout] 32 | | key: &'static str, [INFO] [stdout] 33 | | found: Object, [INFO] [stdout] 34 | | }, [INFO] [stdout] | |_____- the variant `InvalidDictionaryValueForKey` contains at least 520 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::ParseError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [WARN] too many lines in the log, truncating it