[INFO] cloning repository https://github.com/BvdMerwe/coolpi
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/BvdMerwe/coolpi" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBvdMerwe%2Fcoolpi", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBvdMerwe%2Fcoolpi'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 7c3c23526f695c660f2256601e875a3c5f9a6d84
[INFO] checking BvdMerwe/coolpi against master#292be5c7c05138d753bbd4b30db7a3f1a5c914f7 for pr-148271
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBvdMerwe%2Fcoolpi" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/BvdMerwe/coolpi
[INFO] finished tweaking git repo https://github.com/BvdMerwe/coolpi
[INFO] tweaked toml for git repo https://github.com/BvdMerwe/coolpi written to /workspace/builds/worker-1-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/BvdMerwe/coolpi on toolchain 292be5c7c05138d753bbd4b30db7a3f1a5c914f7
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+292be5c7c05138d753bbd4b30db7a3f1a5c914f7" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/BvdMerwe/coolpi 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" "+292be5c7c05138d753bbd4b30db7a3f1a5c914f7" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded ioctl-sys v0.8.0
[INFO] [stderr]   Downloaded toml v0.9.2
[INFO] [stderr]   Downloaded gpiocdev-uapi v0.6.4
[INFO] [stderr]   Downloaded toml_parser v1.0.1
[INFO] [stderr]   Downloaded gpiocdev v0.7.3
[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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+292be5c7c05138d753bbd4b30db7a3f1a5c914f7" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 54ca7f8f40d246c58c6938bc58152d582054560336af08bc424db370a9767d28
[INFO] running `Command { std: "docker" "start" "-a" "54ca7f8f40d246c58c6938bc58152d582054560336af08bc424db370a9767d28", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "54ca7f8f40d246c58c6938bc58152d582054560336af08bc424db370a9767d28", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "54ca7f8f40d246c58c6938bc58152d582054560336af08bc424db370a9767d28", kill_on_drop: false }`
[INFO] [stdout] 54ca7f8f40d246c58c6938bc58152d582054560336af08bc424db370a9767d28
[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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+292be5c7c05138d753bbd4b30db7a3f1a5c914f7" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] f4cdaeaf5ccf317607843171cc63af4036dc6bd28913222272a292b912bb4231
[INFO] running `Command { std: "docker" "start" "-a" "f4cdaeaf5ccf317607843171cc63af4036dc6bd28913222272a292b912bb4231", kill_on_drop: false }`
[INFO] [stderr]    Compiling parking_lot_core v0.9.11
[INFO] [stderr]    Compiling serde v1.0.219
[INFO] [stderr]     Checking memchr v2.7.5
[INFO] [stderr]    Compiling lock_api v0.4.13
[INFO] [stderr]     Checking signal-hook-registry v1.4.5
[INFO] [stderr]     Checking mio v1.0.4
[INFO] [stderr]     Checking socket2 v0.5.10
[INFO] [stderr]    Compiling icu_properties_data v2.0.1
[INFO] [stderr]     Checking getrandom v0.3.3
[INFO] [stderr]    Compiling crc32fast v1.5.0
[INFO] [stderr]    Compiling synstructure v0.13.2
[INFO] [stderr]    Compiling zerovec-derive v0.11.1
[INFO] [stderr]    Compiling displaydoc v0.2.5
[INFO] [stderr]    Compiling cc v1.2.30
[INFO] [stderr]     Checking tracing v0.1.41
[INFO] [stderr]    Compiling tracing-core v0.1.34
[INFO] [stderr]     Checking hashbrown v0.15.4
[INFO] [stderr]     Checking adler2 v2.0.1
[INFO] [stderr]     Checking rand_core v0.9.3
[INFO] [stderr]    Compiling derive_more-impl v2.0.1
[INFO] [stderr]     Checking brotli-decompressor v5.0.0
[INFO] [stderr]     Checking slab v0.4.10
[INFO] [stderr]     Checking parking_lot v0.12.4
[INFO] [stderr]    Compiling cfg-if v1.0.1
[INFO] [stderr]     Checking rand_chacha v0.9.0
[INFO] [stderr]     Checking miniz_oxide v0.8.9
[INFO] [stderr]    Compiling serde_json v1.0.141
[INFO] [stderr]     Checking aho-corasick v1.1.3
[INFO] [stderr]     Checking sha1 v0.10.6
[INFO] [stderr]     Checking indexmap v2.10.0
[INFO] [stderr]     Checking encoding_rs v0.8.35
[INFO] [stderr]     Checking winnow v0.7.12
[INFO] [stderr]     Checking flate2 v1.1.2
[INFO] [stderr]     Checking rand v0.9.1
[INFO] [stderr]     Checking tokio v1.46.1
[INFO] [stderr]     Checking ioctl-sys v0.8.0
[INFO] [stderr]    Compiling zerofrom-derive v0.1.6
[INFO] [stderr]    Compiling yoke-derive v0.8.0
[INFO] [stderr]     Checking gpiocdev-uapi v0.6.4
[INFO] [stderr]    Compiling actix-router v0.5.3
[INFO] [stderr]    Compiling actix-macros v0.2.4
[INFO] [stderr]     Checking toml_writer v1.0.2
[INFO] [stderr]     Checking tempfile v3.20.0
[INFO] [stderr]     Checking gpiocdev v0.7.3
[INFO] [stderr]     Checking regex-automata v0.4.9
[INFO] [stderr]     Checking brotli v8.0.1
[INFO] [stderr]    Compiling actix-web-codegen v4.3.0
[INFO] [stderr]     Checking zerofrom v0.1.6
[INFO] [stderr]     Checking yoke v0.8.0
[INFO] [stderr]     Checking zerovec v0.11.2
[INFO] [stderr]     Checking zerotrie v0.2.2
[INFO] [stderr]    Compiling zstd-sys v2.0.15+zstd.1.5.7
[INFO] [stderr]     Checking derive_more v2.0.1
[INFO] [stderr]     Checking toml_parser v1.0.1
[INFO] [stderr]     Checking tinystr v0.8.1
[INFO] [stderr]     Checking potential_utf v0.1.2
[INFO] [stderr]     Checking toml_datetime v0.7.0
[INFO] [stderr]     Checking icu_locale_core v2.0.0
[INFO] [stderr]     Checking icu_collections v2.0.0
[INFO] [stderr]     Checking serde_urlencoded v0.7.1
[INFO] [stderr]     Checking serde_spanned v1.0.0
[INFO] [stderr]     Checking regex v1.11.1
[INFO] [stderr]     Checking toml v0.9.2
[INFO] [stderr]     Checking icu_provider v2.0.0
[INFO] [stderr]     Checking icu_properties v2.0.1
[INFO] [stderr]     Checking icu_normalizer v2.0.0
[INFO] [stderr]     Checking idna_adapter v1.2.1
[INFO] [stderr]     Checking idna v1.0.3
[INFO] [stderr]     Checking url v2.5.4
[INFO] [stderr]     Checking tokio-util v0.7.15
[INFO] [stderr]     Checking actix-rt v2.10.0
[INFO] [stderr]    Compiling zstd-safe v7.2.4
[INFO] [stderr]     Checking actix-server v2.6.0
[INFO] [stderr]     Checking zstd v0.13.3
[INFO] [stderr]     Checking h2 v0.3.27
[INFO] [stderr]     Checking actix-codec v0.5.2
[INFO] [stderr]     Checking actix-http v3.11.0
[INFO] [stderr]     Checking actix-web v4.11.0
[INFO] [stderr]     Checking coolpi v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> src/fan_controller.rs:33:12
[INFO] [stdout]    |
[INFO] [stdout] 33 |         if (FanState::is_on) {
[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] 33 -         if (FanState::is_on) {
[INFO] [stdout] 33 +         if FanState::is_on  {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> src/fan_controller.rs:42:12
[INFO] [stdout]    |
[INFO] [stdout] 42 |         if (FanState::is_on) {
[INFO] [stdout]    |            ^               ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 42 -         if (FanState::is_on) {
[INFO] [stdout] 42 +         if FanState::is_on  {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied
[INFO] [stdout]   --> src/fan_controller.rs:32:36
[INFO] [stdout]    |
[INFO] [stdout] 32 |     pub fn switch_on(&mut self) -> Result<()> {
[INFO] [stdout]    |                                    ^^^^^^ -- supplied 1 generic argument
[INFO] [stdout]    |                                    |
[INFO] [stdout]    |                                    expected 2 generic arguments
[INFO] [stdout]    |
[INFO] [stdout] help: add missing generic argument
[INFO] [stdout]    |
[INFO] [stdout] 32 |     pub fn switch_on(&mut self) -> Result<(), E> {
[INFO] [stdout]    |                                             +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied
[INFO] [stdout]   --> src/fan_controller.rs:41:37
[INFO] [stdout]    |
[INFO] [stdout] 41 |     pub fn switch_off(&mut self) -> Result<()> {
[INFO] [stdout]    |                                     ^^^^^^ -- supplied 1 generic argument
[INFO] [stdout]    |                                     |
[INFO] [stdout]    |                                     expected 2 generic arguments
[INFO] [stdout]    |
[INFO] [stdout] help: add missing generic argument
[INFO] [stdout]    |
[INFO] [stdout] 41 |     pub fn switch_off(&mut self) -> Result<(), E> {
[INFO] [stdout]    |                                              +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> src/fan_controller.rs:33:12
[INFO] [stdout]    |
[INFO] [stdout] 33 |         if (FanState::is_on) {
[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] 33 -         if (FanState::is_on) {
[INFO] [stdout] 33 +         if FanState::is_on  {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> src/fan_controller.rs:42:12
[INFO] [stdout]    |
[INFO] [stdout] 42 |         if (FanState::is_on) {
[INFO] [stdout]    |            ^               ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 42 -         if (FanState::is_on) {
[INFO] [stdout] 42 +         if FanState::is_on  {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied
[INFO] [stdout]   --> src/fan_controller.rs:32:36
[INFO] [stdout]    |
[INFO] [stdout] 32 |     pub fn switch_on(&mut self) -> Result<()> {
[INFO] [stdout]    |                                    ^^^^^^ -- supplied 1 generic argument
[INFO] [stdout]    |                                    |
[INFO] [stdout]    |                                    expected 2 generic arguments
[INFO] [stdout]    |
[INFO] [stdout] help: add missing generic argument
[INFO] [stdout]    |
[INFO] [stdout] 32 |     pub fn switch_on(&mut self) -> Result<(), E> {
[INFO] [stdout]    |                                             +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied
[INFO] [stdout]   --> src/fan_controller.rs:41:37
[INFO] [stdout]    |
[INFO] [stdout] 41 |     pub fn switch_off(&mut self) -> Result<()> {
[INFO] [stdout]    |                                     ^^^^^^ -- supplied 1 generic argument
[INFO] [stdout]    |                                     |
[INFO] [stdout]    |                                     expected 2 generic arguments
[INFO] [stdout]    |
[INFO] [stdout] help: add missing generic argument
[INFO] [stdout]    |
[INFO] [stdout] 41 |     pub fn switch_off(&mut self) -> Result<(), E> {
[INFO] [stdout]    |                                              +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/fan_controller.rs:27:13
[INFO] [stdout]    |
[INFO] [stdout] 27 |             pin,
[INFO] [stdout]    |             ^^^ expected `u8`, found `&u8`
[INFO] [stdout]    |
[INFO] [stdout] help: consider dereferencing the borrow
[INFO] [stdout]    |
[INFO] [stdout] 27 |             pin: *pin,
[INFO] [stdout]    |             ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/fan_controller.rs:26:9
[INFO] [stdout]    |
[INFO] [stdout] 25 |       pub fn new(pin: &u8) -> Self {
[INFO] [stdout]    |                               ---- expected `FanController` because of return type
[INFO] [stdout] 26 | /         Ok(FanController {
[INFO] [stdout] 27 | |             pin,
[INFO] [stdout] 28 | |             state: FanState::default(),
[INFO] [stdout] 29 | |         })
[INFO] [stdout]    | |__________^ expected `FanController`, found `Result<FanController, Error>`
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected struct `FanController`
[INFO] [stdout]                 found enum `Result<FanController, anyhow::Error>`
[INFO] [stdout] help: consider using `Result::expect` to unwrap the `Result<FanController, anyhow::Error>` value, panicking if the value is a `Result::Err`
[INFO] [stdout]    |
[INFO] [stdout] 29 |         }).expect("REASON")
[INFO] [stdout]    |           +++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no function or associated item named `is_on` found for struct `FanState` in the current scope
[INFO] [stdout]   --> src/fan_controller.rs:33:23
[INFO] [stdout]    |
[INFO] [stdout]  5 | struct FanState {
[INFO] [stdout]    | --------------- function or associated item `is_on` not found for this struct
[INFO] [stdout] ...
[INFO] [stdout] 33 |         if (FanState::is_on) {
[INFO] [stdout]    |                       ^^^^^ function or associated item not found in `FanState`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no function or associated item named `is_on` found for struct `FanState` in the current scope
[INFO] [stdout]   --> src/fan_controller.rs:42:23
[INFO] [stdout]    |
[INFO] [stdout]  5 | struct FanState {
[INFO] [stdout]    | --------------- function or associated item `is_on` not found for this struct
[INFO] [stdout] ...
[INFO] [stdout] 42 |         if (FanState::is_on) {
[INFO] [stdout]    |                       ^^^^^ function or associated item not found in `FanState`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/fan_controller.rs:52:24
[INFO] [stdout]     |
[INFO] [stdout]  52 |             .with_line(self.pin)
[INFO] [stdout]     |              --------- ^^^^^^^^ expected `u32`, found `u8`
[INFO] [stdout]     |              |
[INFO] [stdout]     |              arguments to this method are incorrect
[INFO] [stdout]     |
[INFO] [stdout] note: method defined here
[INFO] [stdout]    --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/gpiocdev-0.7.3/src/request/builder.rs:459:12
[INFO] [stdout]     |
[INFO] [stdout] 459 |     pub fn with_line(&mut self, offset: Offset) -> &mut Self {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] help: you can convert a `u8` to a `u32`
[INFO] [stdout]     |
[INFO] [stdout]  52 |             .with_line(self.pin.into())
[INFO] [stdout]     |                                +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/fan_controller.rs:51:9
[INFO] [stdout]    |
[INFO] [stdout] 50 |       fn pin_write(&mut self, value: Value) -> Request {
[INFO] [stdout]    |                                                ------- expected `gpiocdev::Request` because of return type
[INFO] [stdout] 51 | /         Request::builder()
[INFO] [stdout] 52 | |             .with_line(self.pin)
[INFO] [stdout] 53 | |             .as_output(value)
[INFO] [stdout] 54 | |             .request()
[INFO] [stdout]    | |______________________^ expected `Request`, found `Result<Request, Error>`
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected struct `gpiocdev::Request`
[INFO] [stdout]                 found enum `Result<gpiocdev::Request, gpiocdev::Error>`
[INFO] [stdout] help: consider using `Result::expect` to unwrap the `Result<gpiocdev::Request, gpiocdev::Error>` value, panicking if the value is a `Result::Err`
[INFO] [stdout]    |
[INFO] [stdout] 54 |             .request().expect("REASON")
[INFO] [stdout]    |                       +++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/fan_controller.rs:58:38
[INFO] [stdout]     |
[INFO] [stdout]  58 |         Request::builder().with_line(self.pin).as_input().request()
[INFO] [stdout]     |                            --------- ^^^^^^^^ expected `u32`, found `u8`
[INFO] [stdout]     |                            |
[INFO] [stdout]     |                            arguments to this method are incorrect
[INFO] [stdout]     |
[INFO] [stdout] note: method defined here
[INFO] [stdout]    --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/gpiocdev-0.7.3/src/request/builder.rs:459:12
[INFO] [stdout]     |
[INFO] [stdout] 459 |     pub fn with_line(&mut self, offset: Offset) -> &mut Self {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] help: you can convert a `u8` to a `u32`
[INFO] [stdout]     |
[INFO] [stdout]  58 |         Request::builder().with_line(self.pin.into()).as_input().request()
[INFO] [stdout]     |                                              +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/fan_controller.rs:58:9
[INFO] [stdout]    |
[INFO] [stdout] 57 |     fn pin_read(&mut self) -> Value {
[INFO] [stdout]    |                               ----- expected `gpiocdev::line::Value` because of return type
[INFO] [stdout] 58 |         Request::builder().with_line(self.pin).as_input().request()
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Value`, found `Result<Request, Error>`
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected enum `gpiocdev::line::Value`
[INFO] [stdout]               found enum `Result<gpiocdev::Request, gpiocdev::Error>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/fan_controller.rs:27:13
[INFO] [stdout]    |
[INFO] [stdout] 27 |             pin,
[INFO] [stdout]    |             ^^^ expected `u8`, found `&u8`
[INFO] [stdout]    |
[INFO] [stdout] help: consider dereferencing the borrow
[INFO] [stdout]    |
[INFO] [stdout] 27 |             pin: *pin,
[INFO] [stdout]    |             ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/fan_controller.rs:26:9
[INFO] [stdout]    |
[INFO] [stdout] 25 |       pub fn new(pin: &u8) -> Self {
[INFO] [stdout]    |                               ---- expected `FanController` because of return type
[INFO] [stdout] 26 | /         Ok(FanController {
[INFO] [stdout] 27 | |             pin,
[INFO] [stdout] 28 | |             state: FanState::default(),
[INFO] [stdout] 29 | |         })
[INFO] [stdout]    | |__________^ expected `FanController`, found `Result<FanController, Error>`
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected struct `FanController`
[INFO] [stdout]                 found enum `Result<FanController, anyhow::Error>`
[INFO] [stdout] help: consider using `Result::expect` to unwrap the `Result<FanController, anyhow::Error>` value, panicking if the value is a `Result::Err`
[INFO] [stdout]    |
[INFO] [stdout] 29 |         }).expect("REASON")
[INFO] [stdout]    |           +++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no function or associated item named `is_on` found for struct `FanState` in the current scope
[INFO] [stdout]   --> src/fan_controller.rs:33:23
[INFO] [stdout]    |
[INFO] [stdout]  5 | struct FanState {
[INFO] [stdout]    | --------------- function or associated item `is_on` not found for this struct
[INFO] [stdout] ...
[INFO] [stdout] 33 |         if (FanState::is_on) {
[INFO] [stdout]    |                       ^^^^^ function or associated item not found in `FanState`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no function or associated item named `is_on` found for struct `FanState` in the current scope
[INFO] [stdout]   --> src/fan_controller.rs:42:23
[INFO] [stdout]    |
[INFO] [stdout]  5 | struct FanState {
[INFO] [stdout]    | --------------- function or associated item `is_on` not found for this struct
[INFO] [stdout] ...
[INFO] [stdout] 42 |         if (FanState::is_on) {
[INFO] [stdout]    |                       ^^^^^ function or associated item not found in `FanState`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/fan_controller.rs:52:24
[INFO] [stdout]     |
[INFO] [stdout]  52 |             .with_line(self.pin)
[INFO] [stdout]     |              --------- ^^^^^^^^ expected `u32`, found `u8`
[INFO] [stdout]     |              |
[INFO] [stdout]     |              arguments to this method are incorrect
[INFO] [stdout]     |
[INFO] [stdout] note: method defined here
[INFO] [stdout]    --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/gpiocdev-0.7.3/src/request/builder.rs:459:12
[INFO] [stdout]     |
[INFO] [stdout] 459 |     pub fn with_line(&mut self, offset: Offset) -> &mut Self {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] help: you can convert a `u8` to a `u32`
[INFO] [stdout]     |
[INFO] [stdout]  52 |             .with_line(self.pin.into())
[INFO] [stdout]     |                                +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/fan_controller.rs:51:9
[INFO] [stdout]    |
[INFO] [stdout] 50 |       fn pin_write(&mut self, value: Value) -> Request {
[INFO] [stdout]    |                                                ------- expected `gpiocdev::Request` because of return type
[INFO] [stdout] 51 | /         Request::builder()
[INFO] [stdout] 52 | |             .with_line(self.pin)
[INFO] [stdout] 53 | |             .as_output(value)
[INFO] [stdout] 54 | |             .request()
[INFO] [stdout]    | |______________________^ expected `Request`, found `Result<Request, Error>`
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected struct `gpiocdev::Request`
[INFO] [stdout]                 found enum `Result<gpiocdev::Request, gpiocdev::Error>`
[INFO] [stdout] help: consider using `Result::expect` to unwrap the `Result<gpiocdev::Request, gpiocdev::Error>` value, panicking if the value is a `Result::Err`
[INFO] [stdout]    |
[INFO] [stdout] 54 |             .request().expect("REASON")
[INFO] [stdout]    |                       +++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/fan_controller.rs:58:38
[INFO] [stdout]     |
[INFO] [stdout]  58 |         Request::builder().with_line(self.pin).as_input().request()
[INFO] [stdout]     |                            --------- ^^^^^^^^ expected `u32`, found `u8`
[INFO] [stdout]     |                            |
[INFO] [stdout]     |                            arguments to this method are incorrect
[INFO] [stdout]     |
[INFO] [stdout] note: method defined here
[INFO] [stdout]    --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/gpiocdev-0.7.3/src/request/builder.rs:459:12
[INFO] [stdout]     |
[INFO] [stdout] 459 |     pub fn with_line(&mut self, offset: Offset) -> &mut Self {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] help: you can convert a `u8` to a `u32`
[INFO] [stdout]     |
[INFO] [stdout]  58 |         Request::builder().with_line(self.pin.into()).as_input().request()
[INFO] [stdout]     |                                              +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/fan_controller.rs:58:9
[INFO] [stdout]    |
[INFO] [stdout] 57 |     fn pin_read(&mut self) -> Value {
[INFO] [stdout]    |                               ----- expected `gpiocdev::line::Value` because of return type
[INFO] [stdout] 58 |         Request::builder().with_line(self.pin).as_input().request()
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Value`, found `Result<Request, Error>`
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected enum `gpiocdev::line::Value`
[INFO] [stdout]               found enum `Result<gpiocdev::Request, gpiocdev::Error>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0107, E0308, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0107`.
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0107, E0308, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0107`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `coolpi` (lib test) due to 10 previous errors; 2 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: could not compile `coolpi` (lib) due to 10 previous errors; 2 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "f4cdaeaf5ccf317607843171cc63af4036dc6bd28913222272a292b912bb4231", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "f4cdaeaf5ccf317607843171cc63af4036dc6bd28913222272a292b912bb4231", kill_on_drop: false }`
[INFO] [stdout] f4cdaeaf5ccf317607843171cc63af4036dc6bd28913222272a292b912bb4231
