[INFO] fetching crate ufire_sht20 0.9.1... [INFO] testing ufire_sht20-0.9.1 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate ufire_sht20 0.9.1 into /workspace/builds/worker-3-tc2/source [INFO] started tweaking crates.io crate ufire_sht20 0.9.1 [INFO] finished tweaking crates.io crate ufire_sht20 0.9.1 [INFO] tweaked toml for crates.io crate ufire_sht20 0.9.1 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate ufire_sht20 0.9.1 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate ufire_sht20 0.9.1 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a0a668320a238907a8a4372ba3c0b79606a72dcebe98a2db7fb433004ca1f85e [INFO] running `Command { std: "docker" "start" "-a" "a0a668320a238907a8a4372ba3c0b79606a72dcebe98a2db7fb433004ca1f85e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a0a668320a238907a8a4372ba3c0b79606a72dcebe98a2db7fb433004ca1f85e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a0a668320a238907a8a4372ba3c0b79606a72dcebe98a2db7fb433004ca1f85e", kill_on_drop: false }` [INFO] [stdout] a0a668320a238907a8a4372ba3c0b79606a72dcebe98a2db7fb433004ca1f85e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9ac39f4c50db43052c2864c5d92d3d04919998ae70388123901fe1b804c2658b [INFO] running `Command { std: "docker" "start" "-a" "9ac39f4c50db43052c2864c5d92d3d04919998ae70388123901fe1b804c2658b", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling libc v0.2.37 [INFO] [stderr] Compiling serde v1.0.88 [INFO] [stderr] Compiling cc v1.0.5 [INFO] [stderr] Compiling winapi-build v0.1.1 [INFO] [stderr] Compiling unicode-xid v0.0.4 [INFO] [stderr] Compiling cfg-if v0.1.2 [INFO] [stderr] Compiling quote v0.3.15 [INFO] [stderr] Compiling winapi v0.2.8 [INFO] [stderr] Compiling rustc-demangle v0.1.7 [INFO] [stderr] Compiling memchr v2.2.0 [INFO] [stderr] Compiling num-traits v0.2.1 [INFO] [stderr] Compiling pulldown-cmark v0.1.2 [INFO] [stderr] Compiling itoa v0.3.4 [INFO] [stderr] Compiling dtoa v0.4.2 [INFO] [stderr] Compiling byteorder v1.2.1 [INFO] [stderr] Compiling same-file v0.1.3 [INFO] [stderr] Compiling bitflags v0.9.1 [INFO] [stderr] Compiling bytecount v0.2.0 [INFO] [stderr] Compiling glob v0.2.11 [INFO] [stderr] Compiling synom v0.11.3 [INFO] [stderr] Compiling nix v0.10.0 [INFO] [stderr] Compiling kernel32-sys v0.2.2 [INFO] [stderr] Compiling encode_unicode v0.3.5 [INFO] [stderr] Compiling walkdir v1.0.7 [INFO] [stderr] Compiling syn v0.11.11 [INFO] [stderr] Compiling term v0.5.1 [INFO] [stderr] Compiling bitflags v1.0.1 [INFO] [stderr] Compiling lazy_static v1.2.0 [INFO] [stderr] Compiling unicode-width v0.1.5 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling rand v0.4.2 [INFO] [stderr] Compiling iovec v0.1.2 [INFO] [stderr] Compiling atty v0.2.11 [INFO] [stderr] Compiling remove_dir_all v0.3.0 [INFO] [stderr] Compiling bytes v0.4.6 [INFO] [stderr] Compiling csv-core v0.1.5 [INFO] [stderr] Compiling backtrace-sys v0.1.16 [INFO] [stderr] Compiling serde_derive_internals v0.19.0 [INFO] [stderr] Compiling tempdir v0.3.6 [INFO] [stderr] Compiling serde_derive v1.0.27 [INFO] [stderr] Compiling serde_json v1.0.10 [INFO] [stderr] Compiling semver v0.8.0 [INFO] [stderr] Compiling csv v1.0.5 [INFO] [stderr] Compiling prettytable-rs v0.8.0 [INFO] [stderr] Compiling shrust v0.0.6 [INFO] [stderr] Compiling backtrace v0.3.5 [INFO] [stderr] Compiling error-chain v0.11.0 [INFO] [stderr] Compiling cargo_metadata v0.3.3 [INFO] [stderr] Compiling skeptic v0.13.2 [INFO] [stderr] Compiling i2cdev v0.3.2 [INFO] [stderr] Compiling ufire_sht20 v0.9.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/lib.rs:61:45 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn temperature(&mut self) -> Result<(f32), Box> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 61 - pub fn temperature(&mut self) -> Result<(f32), Box> { [INFO] [stdout] 61 + pub fn temperature(&mut self) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/lib.rs:80:42 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn humidity(&mut self) -> Result<(f32), Box> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 80 - pub fn humidity(&mut self) -> Result<(f32), Box> { [INFO] [stdout] 80 + pub fn humidity(&mut self) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/lib.rs:125:62 [INFO] [stdout] | [INFO] [stdout] 125 | pub fn _read_register(&mut self, register: u8) -> Result<(f32), Box> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 125 - pub fn _read_register(&mut self, register: u8) -> Result<(f32), Box> { [INFO] [stdout] 125 + pub fn _read_register(&mut self, register: u8) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/lib.rs:111:32 [INFO] [stdout] | [INFO] [stdout] 111 | let buf: [u8; 4] = mem::transmute(f_val); [INFO] [stdout] | --------------^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f32::to_ne_bytes` [INFO] [stdout] | [INFO] [stdout] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:14:3 [INFO] [stdout] | [INFO] [stdout] 14 | try!(writeln!(io, "{}", sht20.temperature().unwrap())); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:20:3 [INFO] [stdout] | [INFO] [stdout] 20 | try!(writeln!(io, "{}", sht20.humidity().unwrap())); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 13.62s [INFO] running `Command { std: "docker" "inspect" "9ac39f4c50db43052c2864c5d92d3d04919998ae70388123901fe1b804c2658b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9ac39f4c50db43052c2864c5d92d3d04919998ae70388123901fe1b804c2658b", kill_on_drop: false }` [INFO] [stdout] 9ac39f4c50db43052c2864c5d92d3d04919998ae70388123901fe1b804c2658b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] da7690db66d2a40c95921c41668ce48a1ed559af86bd877df05d725aa1e95129 [INFO] running `Command { std: "docker" "start" "-a" "da7690db66d2a40c95921c41668ce48a1ed559af86bd877df05d725aa1e95129", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/lib.rs:61:45 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn temperature(&mut self) -> Result<(f32), Box> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 61 - pub fn temperature(&mut self) -> Result<(f32), Box> { [INFO] [stdout] 61 + pub fn temperature(&mut self) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling ufire_sht20 v0.9.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/lib.rs:80:42 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn humidity(&mut self) -> Result<(f32), Box> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 80 - pub fn humidity(&mut self) -> Result<(f32), Box> { [INFO] [stdout] 80 + pub fn humidity(&mut self) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/lib.rs:125:62 [INFO] [stdout] | [INFO] [stdout] 125 | pub fn _read_register(&mut self, register: u8) -> Result<(f32), Box> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 125 - pub fn _read_register(&mut self, register: u8) -> Result<(f32), Box> { [INFO] [stdout] 125 + pub fn _read_register(&mut self, register: u8) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/lib.rs:111:32 [INFO] [stdout] | [INFO] [stdout] 111 | let buf: [u8; 4] = mem::transmute(f_val); [INFO] [stdout] | --------------^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f32::to_ne_bytes` [INFO] [stdout] | [INFO] [stdout] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/lib.rs:61:45 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn temperature(&mut self) -> Result<(f32), Box> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 61 - pub fn temperature(&mut self) -> Result<(f32), Box> { [INFO] [stdout] 61 + pub fn temperature(&mut self) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/lib.rs:80:42 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn humidity(&mut self) -> Result<(f32), Box> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 80 - pub fn humidity(&mut self) -> Result<(f32), Box> { [INFO] [stdout] 80 + pub fn humidity(&mut self) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/lib.rs:125:62 [INFO] [stdout] | [INFO] [stdout] 125 | pub fn _read_register(&mut self, register: u8) -> Result<(f32), Box> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 125 - pub fn _read_register(&mut self, register: u8) -> Result<(f32), Box> { [INFO] [stdout] 125 + pub fn _read_register(&mut self, register: u8) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:14:3 [INFO] [stdout] | [INFO] [stdout] 14 | try!(writeln!(io, "{}", sht20.temperature().unwrap())); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:20:3 [INFO] [stdout] | [INFO] [stdout] 20 | try!(writeln!(io, "{}", sht20.humidity().unwrap())); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/lib.rs:111:32 [INFO] [stdout] | [INFO] [stdout] 111 | let buf: [u8; 4] = mem::transmute(f_val); [INFO] [stdout] | --------------^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f32::to_ne_bytes` [INFO] [stdout] | [INFO] [stdout] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.29s [INFO] running `Command { std: "docker" "inspect" "da7690db66d2a40c95921c41668ce48a1ed559af86bd877df05d725aa1e95129", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "da7690db66d2a40c95921c41668ce48a1ed559af86bd877df05d725aa1e95129", kill_on_drop: false }` [INFO] [stdout] da7690db66d2a40c95921c41668ce48a1ed559af86bd877df05d725aa1e95129 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] d4f05d534a6fd84dc7f6923c3d10f1364def5d0e7fc4b737feeb487253be7405 [INFO] running `Command { std: "docker" "start" "-a" "d4f05d534a6fd84dc7f6923c3d10f1364def5d0e7fc4b737feeb487253be7405", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> src/lib.rs:61:45 [INFO] [stderr] | [INFO] [stderr] 61 | pub fn temperature(&mut self) -> Result<(f32), Box> { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 61 - pub fn temperature(&mut self) -> Result<(f32), Box> { [INFO] [stderr] 61 + pub fn temperature(&mut self) -> Result> { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> src/lib.rs:80:42 [INFO] [stderr] | [INFO] [stderr] 80 | pub fn humidity(&mut self) -> Result<(f32), Box> { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 80 - pub fn humidity(&mut self) -> Result<(f32), Box> { [INFO] [stderr] 80 + pub fn humidity(&mut self) -> Result> { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> src/lib.rs:125:62 [INFO] [stderr] | [INFO] [stderr] 125 | pub fn _read_register(&mut self, register: u8) -> Result<(f32), Box> { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 125 - pub fn _read_register(&mut self, register: u8) -> Result<(f32), Box> { [INFO] [stderr] 125 + pub fn _read_register(&mut self, register: u8) -> Result> { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary transmute [INFO] [stderr] --> src/lib.rs:111:32 [INFO] [stderr] | [INFO] [stderr] 111 | let buf: [u8; 4] = mem::transmute(f_val); [INFO] [stderr] | --------------^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: replace this with: `f32::to_ne_bytes` [INFO] [stderr] | [INFO] [stderr] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stderr] = note: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `ufire_sht20` (lib) generated 4 warnings (run `cargo fix --lib -p ufire_sht20` to apply 4 suggestions) [INFO] [stderr] warning: `ufire_sht20` (lib test) generated 4 warnings (4 duplicates) [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/main.rs:14:3 [INFO] [stderr] | [INFO] [stderr] 14 | try!(writeln!(io, "{}", sht20.temperature().unwrap())); [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/main.rs:20:3 [INFO] [stderr] | [INFO] [stderr] 20 | try!(writeln!(io, "{}", sht20.humidity().unwrap())); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: `ufire_sht20` (bin "ufire_sht20_bin" test) generated 2 warnings [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.06s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/ufire_sht20-1fef2ff9349d515b) [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/ufire_sht20_bin-50fe84e08720ad04) [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests ufire_sht20 [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> src/lib.rs:61:45 [INFO] [stderr] | [INFO] [stderr] 61 | pub fn temperature(&mut self) -> Result<(f32), Box> { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 61 - pub fn temperature(&mut self) -> Result<(f32), Box> { [INFO] [stderr] 61 + pub fn temperature(&mut self) -> Result> { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> src/lib.rs:80:42 [INFO] [stderr] | [INFO] [stderr] 80 | pub fn humidity(&mut self) -> Result<(f32), Box> { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 80 - pub fn humidity(&mut self) -> Result<(f32), Box> { [INFO] [stderr] 80 + pub fn humidity(&mut self) -> Result> { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> src/lib.rs:125:62 [INFO] [stderr] | [INFO] [stderr] 125 | pub fn _read_register(&mut self, register: u8) -> Result<(f32), Box> { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 125 - pub fn _read_register(&mut self, register: u8) -> Result<(f32), Box> { [INFO] [stderr] 125 + pub fn _read_register(&mut self, register: u8) -> Result> { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: 3 warnings emitted [INFO] [stderr] [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test src/lib.rs - SHT20::new (line 45) ... FAILED [INFO] [stdout] test src/lib.rs - SHT20::humidity (line 76) ... FAILED [INFO] [stdout] test src/lib.rs - SHT20::temperature (line 57) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - SHT20::new (line 45) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SHT20` [INFO] [stdout] --> src/lib.rs:46:17 [INFO] [stdout] | [INFO] [stdout] 3 | let mut sht20 = SHT20::new("/dev/i2c-3").unwrap(); [INFO] [stdout] | ^^^^^ use of undeclared type `SHT20` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - SHT20::humidity (line 76) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SHT20` [INFO] [stdout] --> src/lib.rs:77:17 [INFO] [stdout] | [INFO] [stdout] 3 | let mut sht20 = SHT20::new("/dev/i2c-3").unwrap(); [INFO] [stdout] | ^^^^^ use of undeclared type `SHT20` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - SHT20::temperature (line 57) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SHT20` [INFO] [stdout] --> src/lib.rs:58:17 [INFO] [stdout] | [INFO] [stdout] 3 | let mut sht20 = SHT20::new("/dev/i2c-3").unwrap(); [INFO] [stdout] | ^^^^^ use of undeclared type `SHT20` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - SHT20::humidity (line 76) [INFO] [stdout] src/lib.rs - SHT20::new (line 45) [INFO] [stdout] src/lib.rs - SHT20::temperature (line 57) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 3 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.12s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "d4f05d534a6fd84dc7f6923c3d10f1364def5d0e7fc4b737feeb487253be7405", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d4f05d534a6fd84dc7f6923c3d10f1364def5d0e7fc4b737feeb487253be7405", kill_on_drop: false }` [INFO] [stdout] d4f05d534a6fd84dc7f6923c3d10f1364def5d0e7fc4b737feeb487253be7405