[INFO] fetching crate lifx-rs 0.1.30... [INFO] testing lifx-rs-0.1.30 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate lifx-rs 0.1.30 into /workspace/builds/worker-7-tc1/source [INFO] started tweaking crates.io crate lifx-rs 0.1.30 [INFO] finished tweaking crates.io crate lifx-rs 0.1.30 [INFO] tweaked toml for crates.io crate lifx-rs 0.1.30 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate lifx-rs 0.1.30 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 198 packages to latest compatible versions [INFO] [stderr] Adding reqwest v0.11.27 (available: v0.12.23) [INFO] [stderr] Adding thiserror v1.0.69 (available: v2.0.16) [INFO] [stderr] Adding trust-dns-resolver v0.22.0 (available: v0.23.2) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded trust-dns-resolver v0.22.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fca0aacd4b2397addfb2eb3bbd3ac814d4160792a0bc99e9f27a8d200d9f43ab [INFO] running `Command { std: "docker" "start" "-a" "fca0aacd4b2397addfb2eb3bbd3ac814d4160792a0bc99e9f27a8d200d9f43ab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fca0aacd4b2397addfb2eb3bbd3ac814d4160792a0bc99e9f27a8d200d9f43ab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fca0aacd4b2397addfb2eb3bbd3ac814d4160792a0bc99e9f27a8d200d9f43ab", kill_on_drop: false }` [INFO] [stdout] fca0aacd4b2397addfb2eb3bbd3ac814d4160792a0bc99e9f27a8d200d9f43ab [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 970e54b9f933fe69f330eb3ee95883e37d8d414bc9f0986a3c4fc58268f17dc1 [INFO] running `Command { std: "docker" "start" "-a" "970e54b9f933fe69f330eb3ee95883e37d8d414bc9f0986a3c4fc58268f17dc1", kill_on_drop: false }` [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling bitflags v2.9.3 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling matches v0.1.10 [INFO] [stderr] Compiling unicode-bidi v0.3.18 [INFO] [stderr] Compiling enum-as-inner v0.5.1 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling trust-dns-proto v0.22.0 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling trust-dns-resolver v0.22.0 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling lifx-rs v0.1.30 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 41.56s [INFO] running `Command { std: "docker" "inspect" "970e54b9f933fe69f330eb3ee95883e37d8d414bc9f0986a3c4fc58268f17dc1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "970e54b9f933fe69f330eb3ee95883e37d8d414bc9f0986a3c4fc58268f17dc1", kill_on_drop: false }` [INFO] [stdout] 970e54b9f933fe69f330eb3ee95883e37d8d414bc9f0986a3c4fc58268f17dc1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 421597f278a934e44c25dfb582659291198ca0781b7c8726553ebd3708bf68fd [INFO] running `Command { std: "docker" "start" "-a" "421597f278a934e44c25dfb582659291198ca0781b7c8726553ebd3708bf68fd", kill_on_drop: false }` [INFO] [stderr] Compiling lifx-rs v0.1.30 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.91s [INFO] running `Command { std: "docker" "inspect" "421597f278a934e44c25dfb582659291198ca0781b7c8726553ebd3708bf68fd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "421597f278a934e44c25dfb582659291198ca0781b7c8726553ebd3708bf68fd", kill_on_drop: false }` [INFO] [stdout] 421597f278a934e44c25dfb582659291198ca0781b7c8726553ebd3708bf68fd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] fe9b3c683b734fcc9187dcb1cdc29f65fd45ae0abf16a6756df5b7872766ea95 [INFO] running `Command { std: "docker" "start" "-a" "fe9b3c683b734fcc9187dcb1cdc29f65fd45ae0abf16a6756df5b7872766ea95", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.22s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/lifx_rs-cac27c75ef02494a) [INFO] [stdout] [INFO] [stdout] running 10 tests [INFO] [stdout] test lan::tests::test_build_a_packet ... ok [INFO] [stdout] test lan::tests::test_decode_frame ... ok [INFO] [stderr] Doc-tests lifx_rs [INFO] [stdout] test lan::tests::test_decode_frame1 ... ok [INFO] [stdout] test lan::tests::test_decode_frame_address ... ok [INFO] [stdout] test lan::tests::test_decode_full ... ok [INFO] [stdout] test lan::tests::test_decode_full_1 ... ok [INFO] [stdout] test lan::tests::test_decode_protocol_header ... ok [INFO] [stdout] test lan::tests::test_frame ... ok [INFO] [stdout] test lan::tests::test_frame_address ... ok [INFO] [stdout] test lan::tests::test_protocol_header ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 10 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 61 tests [INFO] [stdout] test src/lib.rs - Color::validate (line 3182) ... FAILED [INFO] [stdout] test src/lib.rs - FlameEffect::new (line 3998) ... FAILED [INFO] [stdout] test src/lib.rs - Color::async_validate (line 3125) ... FAILED [INFO] [stdout] test src/lib.rs - BreatheEffect::new (line 3578) ... FAILED [INFO] [stdout] test src/lib.rs - (line 103) ... FAILED [INFO] [stdout] test src/lib.rs - Light::async_clean_by_selector (line 399) ... FAILED [INFO] [stdout] test src/lib.rs - (line 48) ... FAILED [INFO] [stdout] test src/lib.rs - Light::async_effects_off (line 475) ... FAILED [INFO] [stdout] test src/lib.rs - Light::async_clean (line 350) ... FAILED [INFO] [stdout] test src/lib.rs - Light::async_breathe_effect_by_selector (line 271) ... FAILED [INFO] [stdout] test src/lib.rs - Light::async_effects_off_by_selector (line 523) ... FAILED [INFO] [stdout] test src/lib.rs - Light::async_flame_effect_by_selector (line 650) ... FAILED [INFO] [stdout] test src/lib.rs - Light::async_list_by_selector (line 759) ... FAILED [INFO] [stdout] test src/lib.rs - Light::async_list_all (line 726) ... FAILED [INFO] [stdout] test src/lib.rs - EffectsOff::new (line 3940) ... ok [INFO] [stdout] test src/lib.rs - Light::async_morph_effect_by_selector (line 873) ... FAILED [INFO] [stdout] test src/lib.rs - Light::async_breathe_effect (line 219) ... FAILED [INFO] [stdout] test src/lib.rs - Light::async_morph_effect (line 817) ... FAILED [INFO] [stdout] test src/lib.rs - Light::async_flame_effect (line 600) ... FAILED [INFO] [stdout] test src/lib.rs - Light::async_pulse_effect_by_selector (line 1131) ... FAILED [INFO] [stdout] test src/lib.rs - Light::async_move_effect_by_selector (line 1002) ... FAILED [INFO] [stdout] test src/lib.rs - Light::async_set_state (line 1213) ... FAILED [INFO] [stdout] test src/lib.rs - Light::async_set_state_by_selector (line 1262) ... FAILED [INFO] [stdout] test src/lib.rs - Light::async_move_effect (line 951) ... FAILED [INFO] [stdout] test src/lib.rs - Light::async_set_states (line 1335) ... FAILED [INFO] [stdout] test src/lib.rs - Light::async_pulse_effect (line 1079) ... FAILED [INFO] [stdout] test src/lib.rs - Light::breathe_by_selector_effect (line 1683) ... FAILED [INFO] [stdout] test src/lib.rs - Light::clean_by_selector (line 1808) ... FAILED [INFO] [stdout] test src/lib.rs - Light::async_state_delta_by_selector (line 1425) ... FAILED [INFO] [stdout] test src/lib.rs - Light::async_toggle (line 1502) ... FAILED [INFO] [stdout] test src/lib.rs - Light::breathe_effect (line 1632) ... FAILED [INFO] [stdout] test src/lib.rs - Light::effects_off_by_selector (line 1929) ... FAILED [INFO] [stdout] test src/lib.rs - Light::async_toggle_by_selector (line 1550) ... FAILED [INFO] [stdout] test src/lib.rs - Light::clean (line 1760) ... FAILED [INFO] [stdout] test src/lib.rs - Light::list_all (line 2124) ... FAILED [INFO] [stdout] test src/lib.rs - Light::flame_effect_by_selector (line 2051) ... FAILED [INFO] [stdout] test src/lib.rs - Light::list_by_selector (line 2156) ... FAILED [INFO] [stdout] test src/lib.rs - Light::pulse_effect (line 2456) ... FAILED [INFO] [stdout] test src/lib.rs - Light::flame_effect (line 2002) ... FAILED [INFO] [stdout] test src/lib.rs - Light::move_effect (line 2341) ... FAILED [INFO] [stdout] test src/lib.rs - Light::morph_effect (line 2214) ... FAILED [INFO] [stdout] test src/lib.rs - Light::effects_off (line 1882) ... FAILED [INFO] [stdout] test src/lib.rs - Light::morph_effect_by_selector (line 2269) ... FAILED [INFO] [stdout] test src/lib.rs - Light::move_effect_by_selector (line 2391) ... FAILED [INFO] [stdout] test src/lib.rs - Light::toggle_by_selector (line 2904) ... FAILED [INFO] [stdout] test src/lib.rs - Light::toggle (line 2857) ... FAILED [INFO] [stdout] test src/lib.rs - Light::set_state_by_selector (line 2627) ... FAILED [INFO] [stdout] test src/lib.rs - Light::set_states (line 2697) ... FAILED [INFO] [stdout] test src/lib.rs - Light::set_state (line 2579) ... FAILED [INFO] [stdout] test src/lib.rs - Light::pulse_effect_by_selector (line 2507) ... FAILED [INFO] [stdout] test src/lib.rs - PulseEffect::new (line 3856) ... FAILED [INFO] [stdout] test src/lib.rs - Light::state_delta_by_selector (line 2783) ... FAILED [INFO] [stdout] test src/lib.rs - Scene::async_list (line 2995) ... FAILED [INFO] [stdout] test src/lib.rs - Scene::list (line 3053) ... FAILED [INFO] [stdout] test src/lib.rs - StateDelta::new (line 3474) ... FAILED [INFO] [stdout] test src/lib.rs - MorphEffect::new (line 3761) ... FAILED [INFO] [stdout] test src/lib.rs - (line 53) ... ok [INFO] [stdout] test src/lib.rs - States::new (line 3421) ... ok [INFO] [stdout] test src/lib.rs - State::new (line 3291) ... ok [INFO] [stdout] test src/lib.rs - MoveEffect::new (line 3676) ... ok [INFO] [stdout] test src/lib.rs - Toggle::new (line 3370) ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - Color::validate (line 3182) stdout ---- [INFO] [stdout] error[E0061]: this function takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/lib.rs:3197:18 [INFO] [stdout] | [INFO] [stdout] 16 | let scenes = lifx::Color::validate(config)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^-------- argument #2 of type `String` is missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:3201:12 [INFO] [stdout] | [INFO] [stdout] 3201 | pub fn validate(config: LifxConfig, color: String) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 16 | let scenes = lifx::Color::validate(config, /* String */)?; [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:3197:47 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | --------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 16 | let scenes = lifx::Color::validate(config)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 3 ~ fn main() -> Result<(), Box> { [INFO] [stdout] 4 | [INFO] [stdout] ... [INFO] [stdout] 16 | let scenes = lifx::Color::validate(config)?; [INFO] [stdout] 17 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0277. [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - FlameEffect::new (line 3998) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:4015:34 [INFO] [stdout] | [INFO] [stdout] 18 | flame_effect.duration = Some(0); [INFO] [stdout] | ---- ^ expected `f64`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `{integer}` due to the type of the argument passed [INFO] [stdout] --> src/lib.rs:4015:29 [INFO] [stdout] | [INFO] [stdout] 18 | flame_effect.duration = Some(0); [INFO] [stdout] | ^^^^^-^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/core/src/option.rs:601:5 [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 18 | flame_effect.duration = Some(0.0); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Color::async_validate (line 3125) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/lib.rs:3127:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:3141:46 [INFO] [stdout] | [INFO] [stdout] 17 | let scenes = lifx::Color::async_validate(key, format!("red")).await?; [INFO] [stdout] | --------------------------- ^^^ expected `LifxConfig`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:3145:18 [INFO] [stdout] | [INFO] [stdout] 3145 | pub async fn async_validate(config: LifxConfig, color: String) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:3141:72 [INFO] [stdout] | [INFO] [stdout] 4 | async fn main() { [INFO] [stdout] | _________________- [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | let key = "xxx".to_string(); [INFO] [stdout] 7 | | let mut api_endpoints: Vec = Vec::new(); [INFO] [stdout] ... | [INFO] [stdout] 17 | | let scenes = lifx::Color::async_validate(key, format!("red")).await?; [INFO] [stdout] | | ^ cannot use the `?` operator in an async function that returns `()` [INFO] [stdout] 18 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/lib.rs:3128:1 [INFO] [stdout] | [INFO] [stdout] 4 | async fn main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - BreatheEffect::new (line 3578) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:3596:27 [INFO] [stdout] | [INFO] [stdout] 19 | breathe.period = Some(10); [INFO] [stdout] | ---- ^^ expected `f64`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `{integer}` due to the type of the argument passed [INFO] [stdout] --> src/lib.rs:3596:22 [INFO] [stdout] | [INFO] [stdout] 19 | breathe.period = Some(10); [INFO] [stdout] | ^^^^^--^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/core/src/option.rs:601:5 [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 19 | breathe.period = Some(10.0); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 103) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/lib.rs:105:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/lib.rs:106:1 [INFO] [stdout] | [INFO] [stdout] 4 | async fn main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Light::async_clean_by_selector (line 399) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/lib.rs:401:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:420:42 [INFO] [stdout] | [INFO] [stdout] 22 | lifx::Light::async_clean_by_selector(key.clone(), format!("all"), clean).await; [INFO] [stdout] | ------------------------------------ ^^^^^^^^^^^ expected `LifxConfig`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:424:18 [INFO] [stdout] | [INFO] [stdout] 424 | pub async fn async_clean_by_selector(config: LifxConfig, selector: String, clean: Clean) -> Result{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/lib.rs:402:1 [INFO] [stdout] | [INFO] [stdout] 4 | async fn main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 48) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `lifx` in this scope [INFO] [stdout] --> src/lib.rs:49:1 [INFO] [stdout] | [INFO] [stdout] 3 | lifx-rs = "0.1.28" [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `rs` in this scope [INFO] [stdout] --> src/lib.rs:49:6 [INFO] [stdout] | [INFO] [stdout] 3 | lifx-rs = "0.1.28" [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0070]: invalid left-hand side of assignment [INFO] [stdout] --> src/lib.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 3 | lifx-rs = "0.1.28" [INFO] [stdout] | ------- ^ [INFO] [stdout] | | [INFO] [stdout] | cannot assign to this expression [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0070, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0070`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Light::async_effects_off (line 475) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/lib.rs:477:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:500:55 [INFO] [stdout] | [INFO] [stdout] 26 | let results = light.async_effects_off(key.clone(), effects_off.clone()).await; [INFO] [stdout] | ----------------- ^^^^^^^^^^^ expected `LifxConfig`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:509:18 [INFO] [stdout] | [INFO] [stdout] 509 | pub async fn async_effects_off(&self, config: LifxConfig, effects_off: EffectsOff) -> Result{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/lib.rs:478:1 [INFO] [stdout] | [INFO] [stdout] 4 | async fn main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Light::async_clean (line 350) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/lib.rs:352:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:376:49 [INFO] [stdout] | [INFO] [stdout] 27 | let results = light.async_clean(key.clone(), clean.clone()).await; [INFO] [stdout] | ----------- ^^^^^^^^^^^ expected `LifxConfig`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:385:18 [INFO] [stdout] | [INFO] [stdout] 385 | pub async fn async_clean(&self, config: LifxConfig, clean: Clean) -> Result{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/lib.rs:353:1 [INFO] [stdout] | [INFO] [stdout] 4 | async fn main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Light::async_breathe_effect_by_selector (line 271) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/lib.rs:273:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:290:27 [INFO] [stdout] | [INFO] [stdout] 20 | breathe.period = Some(10); [INFO] [stdout] | ---- ^^ expected `f64`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `{integer}` due to the type of the argument passed [INFO] [stdout] --> src/lib.rs:290:22 [INFO] [stdout] | [INFO] [stdout] 20 | breathe.period = Some(10); [INFO] [stdout] | ^^^^^--^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/core/src/option.rs:601:5 [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 20 | breathe.period = Some(10.0); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:295:51 [INFO] [stdout] | [INFO] [stdout] 25 | lifx::Light::async_breathe_effect_by_selector(key.clone(), format!("all"), breathe).await; [INFO] [stdout] | --------------------------------------------- ^^^^^^^^^^^ expected `LifxConfig`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:299:18 [INFO] [stdout] | [INFO] [stdout] 299 | pub async fn async_breathe_effect_by_selector(config: LifxConfig, selector: String, breathe: BreatheEffect) -> Result src/lib.rs:274:1 [INFO] [stdout] | [INFO] [stdout] 4 | async fn main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Light::async_effects_off_by_selector (line 523) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/lib.rs:525:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:543:48 [INFO] [stdout] | [INFO] [stdout] 21 | lifx::Light::async_effects_off_by_selector(key.clone(), format!("all"), effects_off).await; [INFO] [stdout] | ------------------------------------------ ^^^^^^^^^^^ expected `LifxConfig`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:547:18 [INFO] [stdout] | [INFO] [stdout] 547 | pub async fn async_effects_off_by_selector(config: LifxConfig, selector: String, effects_off: EffectsOff) -> Result src/lib.rs:526:1 [INFO] [stdout] | [INFO] [stdout] 4 | async fn main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Light::async_flame_effect_by_selector (line 650) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/lib.rs:652:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:668:34 [INFO] [stdout] | [INFO] [stdout] 19 | flame_effect.duration = Some(0); [INFO] [stdout] | ---- ^ expected `f64`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `{integer}` due to the type of the argument passed [INFO] [stdout] --> src/lib.rs:668:29 [INFO] [stdout] | [INFO] [stdout] 19 | flame_effect.duration = Some(0); [INFO] [stdout] | ^^^^^-^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/core/src/option.rs:601:5 [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 19 | flame_effect.duration = Some(0.0); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:672:49 [INFO] [stdout] | [INFO] [stdout] 23 | lifx::Light::async_flame_effect_by_selector(key.clone(), format!("all"), flame_effect).await; [INFO] [stdout] | ------------------------------------------- ^^^^^^^^^^^ expected `LifxConfig`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:676:18 [INFO] [stdout] | [INFO] [stdout] 676 | pub async fn async_flame_effect_by_selector(config: LifxConfig, selector: String, flame_effect: FlameEffect) -> Result src/lib.rs:653:1 [INFO] [stdout] | [INFO] [stdout] 4 | async fn main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Light::async_list_by_selector (line 759) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/lib.rs:761:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:775:58 [INFO] [stdout] | [INFO] [stdout] 17 | let all_lights = lifx::Light::async_list_by_selector(key, format!("all")).await?; [INFO] [stdout] | ----------------------------------- ^^^ expected `LifxConfig`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:779:18 [INFO] [stdout] | [INFO] [stdout] 779 | pub async fn async_list_by_selector(config: LifxConfig, selector: String) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:775:84 [INFO] [stdout] | [INFO] [stdout] 4 | async fn main() { [INFO] [stdout] | _________________- [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | let key = "xxx".to_string(); [INFO] [stdout] 7 | | let mut api_endpoints: Vec = Vec::new(); [INFO] [stdout] ... | [INFO] [stdout] 17 | | let all_lights = lifx::Light::async_list_by_selector(key, format!("all")).await?; [INFO] [stdout] | | ^ cannot use the `?` operator in an async function that returns `()` [INFO] [stdout] 18 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/lib.rs:762:1 [INFO] [stdout] | [INFO] [stdout] 4 | async fn main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Light::async_list_all (line 726) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/lib.rs:728:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:742:63 [INFO] [stdout] | [INFO] [stdout] 4 | async fn main() { [INFO] [stdout] | _________________- [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | let key = "xxx".to_string(); [INFO] [stdout] 7 | | let mut api_endpoints: Vec = Vec::new(); [INFO] [stdout] ... | [INFO] [stdout] 17 | | let all_lights = lifx::Light::async_list_all(config).await?; [INFO] [stdout] | | ^ cannot use the `?` operator in an async function that returns `()` [INFO] [stdout] 18 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/lib.rs:729:1 [INFO] [stdout] | [INFO] [stdout] 4 | async fn main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Light::async_morph_effect_by_selector (line 873) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/lib.rs:875:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:891:34 [INFO] [stdout] | [INFO] [stdout] 19 | morph_effect.duration = Some(0); [INFO] [stdout] | ---- ^ expected `f64`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `{integer}` due to the type of the argument passed [INFO] [stdout] --> src/lib.rs:891:29 [INFO] [stdout] | [INFO] [stdout] 19 | morph_effect.duration = Some(0); [INFO] [stdout] | ^^^^^-^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/core/src/option.rs:601:5 [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 19 | morph_effect.duration = Some(0.0); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:901:49 [INFO] [stdout] | [INFO] [stdout] 29 | lifx::Light::async_morph_effect_by_selector(key.clone(), format!("all"), morph_effect).await; [INFO] [stdout] | ------------------------------------------- ^^^^^^^^^^^ expected `LifxConfig`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:905:18 [INFO] [stdout] | [INFO] [stdout] 905 | pub async fn async_morph_effect_by_selector(config: LifxConfig, selector: String, morph_effect: MorphEffect) -> Result src/lib.rs:876:1 [INFO] [stdout] | [INFO] [stdout] 4 | async fn main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Light::async_breathe_effect (line 219) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/lib.rs:221:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:243:35 [INFO] [stdout] | [INFO] [stdout] 25 | breathe.period = Some(10); [INFO] [stdout] | ---- ^^ expected `f64`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `{integer}` due to the type of the argument passed [INFO] [stdout] --> src/lib.rs:243:30 [INFO] [stdout] | [INFO] [stdout] 25 | breathe.period = Some(10); [INFO] [stdout] | ^^^^^--^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/core/src/option.rs:601:5 [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 25 | breathe.period = Some(10.0); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:248:58 [INFO] [stdout] | [INFO] [stdout] 30 | let results = light.async_breathe_effect(key.clone(), breathe.clone()).await; [INFO] [stdout] | -------------------- ^^^^^^^^^^^ expected `LifxConfig`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:257:18 [INFO] [stdout] | [INFO] [stdout] 257 | pub async fn async_breathe_effect(&self, config: LifxConfig, breathe: BreatheEffect) -> Result{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/lib.rs:222:1 [INFO] [stdout] | [INFO] [stdout] 4 | async fn main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Light::async_morph_effect (line 817) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/lib.rs:819:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:840:42 [INFO] [stdout] | [INFO] [stdout] 24 | morph_effect.duration = Some(0); [INFO] [stdout] | ---- ^ expected `f64`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `{integer}` due to the type of the argument passed [INFO] [stdout] --> src/lib.rs:840:37 [INFO] [stdout] | [INFO] [stdout] 24 | morph_effect.duration = Some(0); [INFO] [stdout] | ^^^^^-^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/core/src/option.rs:601:5 [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 24 | morph_effect.duration = Some(0.0); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:850:56 [INFO] [stdout] | [INFO] [stdout] 34 | let results = light.async_morph_effect(key.clone(), morph_effect.clone()).await; [INFO] [stdout] | ------------------ ^^^^^^^^^^^ expected `LifxConfig`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:859:18 [INFO] [stdout] | [INFO] [stdout] 859 | pub async fn async_morph_effect(&self, config: LifxConfig, morph_effect: MorphEffect) -> Result{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/lib.rs:820:1 [INFO] [stdout] | [INFO] [stdout] 4 | async fn main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Light::async_flame_effect (line 600) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/lib.rs:602:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:623:42 [INFO] [stdout] | [INFO] [stdout] 24 | flame_effect.duration = Some(0); [INFO] [stdout] | ---- ^ expected `f64`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `{integer}` due to the type of the argument passed [INFO] [stdout] --> src/lib.rs:623:37 [INFO] [stdout] | [INFO] [stdout] 24 | flame_effect.duration = Some(0); [INFO] [stdout] | ^^^^^-^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/core/src/option.rs:601:5 [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 24 | flame_effect.duration = Some(0.0); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:627:56 [INFO] [stdout] | [INFO] [stdout] 28 | let results = light.async_flame_effect(key.clone(), flame_effect.clone()).await; [INFO] [stdout] | ------------------ ^^^^^^^^^^^ expected `LifxConfig`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:636:18 [INFO] [stdout] | [INFO] [stdout] 636 | pub async fn async_flame_effect(&self, config: LifxConfig, flame_effect: FlameEffect) -> Result{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/lib.rs:603:1 [INFO] [stdout] | [INFO] [stdout] 4 | async fn main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Light::async_pulse_effect_by_selector (line 1131) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/lib.rs:1133:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:1150:25 [INFO] [stdout] | [INFO] [stdout] 20 | pulse.period = Some(10); [INFO] [stdout] | ---- ^^ expected `f64`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `{integer}` due to the type of the argument passed [INFO] [stdout] --> src/lib.rs:1150:20 [INFO] [stdout] | [INFO] [stdout] 20 | pulse.period = Some(10); [INFO] [stdout] | ^^^^^--^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/core/src/option.rs:601:5 [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 20 | pulse.period = Some(10.0); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:1155:49 [INFO] [stdout] | [INFO] [stdout] 25 | lifx::Light::async_pulse_effect_by_selector(key.clone(), format!("all"), pulse).await; [INFO] [stdout] | ------------------------------------------- ^^^^^^^^^^^ expected `LifxConfig`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:1159:18 [INFO] [stdout] | [INFO] [stdout] 1159 | pub async fn async_pulse_effect_by_selector(config: LifxConfig, selector: String, pulse_effect: PulseEffect) -> Result src/lib.rs:1134:1 [INFO] [stdout] | [INFO] [stdout] 4 | async fn main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Light::async_move_effect_by_selector (line 1002) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/lib.rs:1004:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:1025:48 [INFO] [stdout] | [INFO] [stdout] 24 | lifx::Light::async_move_effect_by_selector(key.clone(), format!("all"), move_effect).await; [INFO] [stdout] | ------------------------------------------ ^^^^^^^^^^^ expected `LifxConfig`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:1029:18 [INFO] [stdout] | [INFO] [stdout] 1029 | pub async fn async_move_effect_by_selector(config: LifxConfig, selector: String, move_effect: MoveEffect) -> Result src/lib.rs:1005:1 [INFO] [stdout] | [INFO] [stdout] 4 | async fn main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Light::async_set_state (line 1213) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/lib.rs:1215:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:1239:53 [INFO] [stdout] | [INFO] [stdout] 27 | let results = light.async_set_state(key.clone(), state.clone()).await; [INFO] [stdout] | --------------- ^^^^^^^^^^^ expected `LifxConfig`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:1248:18 [INFO] [stdout] | [INFO] [stdout] 1248 | pub async fn async_set_state(&self, config: LifxConfig, state: State) -> Result{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/lib.rs:1216:1 [INFO] [stdout] | [INFO] [stdout] 4 | async fn main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Light::async_set_state_by_selector (line 1262) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/lib.rs:1264:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:1282:46 [INFO] [stdout] | [INFO] [stdout] 21 | lifx::Light::async_set_state_by_selector(key.clone(), format!("all"), off_state).await; [INFO] [stdout] | ---------------------------------------- ^^^^^^^^^^^ expected `LifxConfig`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:1286:18 [INFO] [stdout] | [INFO] [stdout] 1286 | pub async fn async_set_state_by_selector(config: LifxConfig, selector: String, state: State) -> Result{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/lib.rs:1265:1 [INFO] [stdout] | [INFO] [stdout] 4 | async fn main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Light::async_move_effect (line 951) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/lib.rs:953:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:979:55 [INFO] [stdout] | [INFO] [stdout] 29 | let results = light.async_move_effect(key.clone(), move_effect.clone()).await; [INFO] [stdout] | ----------------- ^^^^^^^^^^^ expected `LifxConfig`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:988:18 [INFO] [stdout] | [INFO] [stdout] 988 | pub async fn async_move_effect(&self, config: LifxConfig, move_effect: MoveEffect) -> Result{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/lib.rs:954:1 [INFO] [stdout] | [INFO] [stdout] 4 | async fn main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Light::async_set_states (line 1335) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/lib.rs:1337:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:1368:35 [INFO] [stdout] | [INFO] [stdout] 34 | lifx::Light::async_set_states(key.clone(), set_states).await; [INFO] [stdout] | ----------------------------- ^^^^^^^^^^^ expected `LifxConfig`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:1372:18 [INFO] [stdout] | [INFO] [stdout] 1372 | pub async fn async_set_states(config: LifxConfig, states: States) -> Result{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/lib.rs:1338:1 [INFO] [stdout] | [INFO] [stdout] 4 | async fn main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Light::async_pulse_effect (line 1079) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/lib.rs:1081:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:1103:33 [INFO] [stdout] | [INFO] [stdout] 25 | pulse.period = Some(10); [INFO] [stdout] | ---- ^^ expected `f64`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `{integer}` due to the type of the argument passed [INFO] [stdout] --> src/lib.rs:1103:28 [INFO] [stdout] | [INFO] [stdout] 25 | pulse.period = Some(10); [INFO] [stdout] | ^^^^^--^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/core/src/option.rs:601:5 [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 25 | pulse.period = Some(10.0); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:1108:56 [INFO] [stdout] | [INFO] [stdout] 30 | let results = light.async_pulse_effect(key.clone(), pulse.clone()).await; [INFO] [stdout] | ------------------ ^^^^^^^^^^^ expected `LifxConfig`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:1117:18 [INFO] [stdout] | [INFO] [stdout] 1117 | pub async fn async_pulse_effect(&self, config: LifxConfig, pulse_effect: PulseEffect) -> Result{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/lib.rs:1082:1 [INFO] [stdout] | [INFO] [stdout] 4 | async fn main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Light::breathe_by_selector_effect (line 1683) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:1701:27 [INFO] [stdout] | [INFO] [stdout] 19 | breathe.period = Some(10); [INFO] [stdout] | ---- ^^ expected `f64`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `{integer}` due to the type of the argument passed [INFO] [stdout] --> src/lib.rs:1701:22 [INFO] [stdout] | [INFO] [stdout] 19 | breathe.period = Some(10); [INFO] [stdout] | ^^^^^--^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/core/src/option.rs:601:5 [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 19 | breathe.period = Some(10.0); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:1706:45 [INFO] [stdout] | [INFO] [stdout] 24 | lifx::Light::breathe_by_selector_effect(key.clone(), format!("all"), breathe); [INFO] [stdout] | --------------------------------------- ^^^^^^^^^^^ expected `LifxConfig`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:1710:12 [INFO] [stdout] | [INFO] [stdout] 1710 | pub fn breathe_by_selector_effect(config: LifxConfig, selector: String, breathe: BreatheEffect) -> Result{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Light::clean_by_selector (line 1808) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:1828:36 [INFO] [stdout] | [INFO] [stdout] 21 | lifx::Light::clean_by_selector(key.clone(), format!("all"), clean); [INFO] [stdout] | ------------------------------ ^^^^^^^^^^^ expected `LifxConfig`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:1832:12 [INFO] [stdout] | [INFO] [stdout] 1832 | pub fn clean_by_selector(config: LifxConfig, selector: String, clean: Clean) -> Result{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Light::async_state_delta_by_selector (line 1425) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/lib.rs:1427:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `toggle` in this scope [INFO] [stdout] --> src/lib.rs:1446:77 [INFO] [stdout] | [INFO] [stdout] 22 | lifx::Light::async_state_delta_by_selector(key.clone(), format!("all"), toggle).await; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:1442:27 [INFO] [stdout] | [INFO] [stdout] 18 | delta.duration = Some(0); [INFO] [stdout] | ---- ^ expected `f64`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `{integer}` due to the type of the argument passed [INFO] [stdout] --> src/lib.rs:1442:22 [INFO] [stdout] | [INFO] [stdout] 18 | delta.duration = Some(0); [INFO] [stdout] | ^^^^^-^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/core/src/option.rs:601:5 [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 18 | delta.duration = Some(0.0); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:1446:48 [INFO] [stdout] | [INFO] [stdout] 22 | lifx::Light::async_state_delta_by_selector(key.clone(), format!("all"), toggle).await; [INFO] [stdout] | ------------------------------------------ ^^^^^^^^^^^ expected `LifxConfig`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:1450:18 [INFO] [stdout] | [INFO] [stdout] 1450 | pub async fn async_state_delta_by_selector(config: LifxConfig, selector: String, delta: StateDelta) -> Result src/lib.rs:1428:1 [INFO] [stdout] | [INFO] [stdout] 4 | async fn main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0425, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Light::async_toggle (line 1502) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/lib.rs:1504:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `clean` in this scope [INFO] [stdout] --> src/lib.rs:1527:63 [INFO] [stdout] | [INFO] [stdout] 26 | let results = light.async_toggle(key.clone(), clean.clone()).await; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:1527:50 [INFO] [stdout] | [INFO] [stdout] 26 | let results = light.async_toggle(key.clone(), clean.clone()).await; [INFO] [stdout] | ------------ ^^^^^^^^^^^ expected `LifxConfig`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:1536:18 [INFO] [stdout] | [INFO] [stdout] 1536 | pub async fn async_toggle(&self, config: LifxConfig, toggle: Toggle) -> Result{ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/lib.rs:1505:1 [INFO] [stdout] | [INFO] [stdout] 4 | async fn main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0425, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Light::breathe_effect (line 1632) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:1655:35 [INFO] [stdout] | [INFO] [stdout] 24 | breathe.period = Some(10); [INFO] [stdout] | ---- ^^ expected `f64`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `{integer}` due to the type of the argument passed [INFO] [stdout] --> src/lib.rs:1655:30 [INFO] [stdout] | [INFO] [stdout] 24 | breathe.period = Some(10); [INFO] [stdout] | ^^^^^--^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/core/src/option.rs:601:5 [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 24 | breathe.period = Some(10.0); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:1660:52 [INFO] [stdout] | [INFO] [stdout] 29 | let results = light.breathe_effect(key.clone(), breathe.clone()); [INFO] [stdout] | -------------- ^^^^^^^^^^^ expected `LifxConfig`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:1669:12 [INFO] [stdout] | [INFO] [stdout] 1669 | pub fn breathe_effect(&self, config: LifxConfig, breathe: BreatheEffect) -> Result{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Light::effects_off_by_selector (line 1929) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:1948:42 [INFO] [stdout] | [INFO] [stdout] 20 | lifx::Light::effects_off_by_selector(key.clone(), format!("all"), effects_off); [INFO] [stdout] | ------------------------------------ ^^^^^^^^^^^ expected `LifxConfig`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:1952:12 [INFO] [stdout] | [INFO] [stdout] 1952 | pub fn effects_off_by_selector(config: LifxConfig, selector: String, effects_off: EffectsOff) -> Result{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Light::async_toggle_by_selector (line 1550) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/lib.rs:1552:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:1570:46 [INFO] [stdout] | [INFO] [stdout] 21 | lifx_rs::Light::async_toggle_by_selector(key.clone(), format!("all"), toggle).await?; [INFO] [stdout] | ---------------------------------------- ^^^^^^^^^^^ expected `LifxConfig`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:1574:18 [INFO] [stdout] | [INFO] [stdout] 1574 | pub async fn async_toggle_by_selector(config: LifxConfig, selector: String, toggle: Toggle) -> Result{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:1570:88 [INFO] [stdout] | [INFO] [stdout] 4 | async fn main() { [INFO] [stdout] | _________________- [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | let key = "xxx".to_string(); [INFO] [stdout] 7 | | let mut api_endpoints: Vec = Vec::new(); [INFO] [stdout] ... | [INFO] [stdout] 21 | | lifx_rs::Light::async_toggle_by_selector(key.clone(), format!("all"), toggle).await?; [INFO] [stdout] | | ^ cannot use the `?` operator in an async function that returns `()` [INFO] [stdout] 22 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/lib.rs:1553:1 [INFO] [stdout] | [INFO] [stdout] 4 | async fn main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `lifx` [INFO] [stdout] --> src/lib.rs:1561:18 [INFO] [stdout] | [INFO] [stdout] 12 | let config = lifx::LifxConfig{ [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `lifx` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `lifx`, use `cargo add lifx` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Light::clean (line 1760) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:1785:43 [INFO] [stdout] | [INFO] [stdout] 26 | let results = light.clean(key.clone(), clean.clone()); [INFO] [stdout] | ----- ^^^^^^^^^^^ expected `LifxConfig`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:1794:12 [INFO] [stdout] | [INFO] [stdout] 1794 | pub fn clean(&self, config: LifxConfig, clean: Clean) -> Result{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Light::list_all (line 2124) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:2139:51 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | --------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 16 | let all_lights = lifx::Light::list_all(config)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 3 ~ fn main() -> Result<(), Box> { [INFO] [stdout] 4 | [INFO] [stdout] ... [INFO] [stdout] 16 | let all_lights = lifx::Light::list_all(config)?; [INFO] [stdout] 17 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Light::flame_effect_by_selector (line 2051) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:2068:34 [INFO] [stdout] | [INFO] [stdout] 18 | flame_effect.duration = Some(0); [INFO] [stdout] | ---- ^ expected `f64`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `{integer}` due to the type of the argument passed [INFO] [stdout] --> src/lib.rs:2068:29 [INFO] [stdout] | [INFO] [stdout] 18 | flame_effect.duration = Some(0); [INFO] [stdout] | ^^^^^-^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/core/src/option.rs:601:5 [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 18 | flame_effect.duration = Some(0.0); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:2072:43 [INFO] [stdout] | [INFO] [stdout] 22 | lifx::Light::flame_effect_by_selector(key.clone(), format!("all"), flame_effect); [INFO] [stdout] | ------------------------------------- ^^^^^^^^^^^ expected `LifxConfig`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:2076:12 [INFO] [stdout] | [INFO] [stdout] 2076 | pub fn flame_effect_by_selector(config: LifxConfig, selector: String, flame_effect: FlameEffect) -> Result src/lib.rs:2171:52 [INFO] [stdout] | [INFO] [stdout] 16 | let all_lights = lifx::Light::list_by_selector(key, format!("all"))?; [INFO] [stdout] | ----------------------------- ^^^ expected `LifxConfig`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:2175:12 [INFO] [stdout] | [INFO] [stdout] 2175 | pub fn list_by_selector(config: LifxConfig, selector: String) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:2171:72 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | --------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 16 | let all_lights = lifx::Light::list_by_selector(key, format!("all"))?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 3 ~ fn main() -> Result<(), Box> { [INFO] [stdout] 4 | [INFO] [stdout] ... [INFO] [stdout] 16 | let all_lights = lifx::Light::list_by_selector(key, format!("all"))?; [INFO] [stdout] 17 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Light::pulse_effect (line 2456) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:2479:33 [INFO] [stdout] | [INFO] [stdout] 24 | pulse.period = Some(10); [INFO] [stdout] | ---- ^^ expected `f64`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `{integer}` due to the type of the argument passed [INFO] [stdout] --> src/lib.rs:2479:28 [INFO] [stdout] | [INFO] [stdout] 24 | pulse.period = Some(10); [INFO] [stdout] | ^^^^^--^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/core/src/option.rs:601:5 [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 24 | pulse.period = Some(10.0); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:2484:50 [INFO] [stdout] | [INFO] [stdout] 29 | let results = light.pulse_effect(key.clone(), pulse.clone()); [INFO] [stdout] | ------------ ^^^^^^^^^^^ expected `LifxConfig`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:2493:12 [INFO] [stdout] | [INFO] [stdout] 2493 | pub fn pulse_effect(&self, config: LifxConfig, pulse_effect: PulseEffect) -> Result{ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Light::flame_effect (line 2002) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:2024:42 [INFO] [stdout] | [INFO] [stdout] 23 | flame_effect.duration = Some(0); [INFO] [stdout] | ---- ^ expected `f64`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `{integer}` due to the type of the argument passed [INFO] [stdout] --> src/lib.rs:2024:37 [INFO] [stdout] | [INFO] [stdout] 23 | flame_effect.duration = Some(0); [INFO] [stdout] | ^^^^^-^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/core/src/option.rs:601:5 [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 23 | flame_effect.duration = Some(0.0); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:2028:50 [INFO] [stdout] | [INFO] [stdout] 27 | let results = light.flame_effect(key.clone(), flame_effect.clone()); [INFO] [stdout] | ------------ ^^^^^^^^^^^ expected `LifxConfig`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:2037:12 [INFO] [stdout] | [INFO] [stdout] 2037 | pub fn flame_effect(&self, config: LifxConfig, flame_effect: FlameEffect) -> Result{ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Light::move_effect (line 2341) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:2368:49 [INFO] [stdout] | [INFO] [stdout] 28 | let results = light.move_effect(key.clone(), move_effect.clone()); [INFO] [stdout] | ----------- ^^^^^^^^^^^ expected `LifxConfig`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:2377:12 [INFO] [stdout] | [INFO] [stdout] 2377 | pub fn move_effect(&self, config: LifxConfig, move_effect: MoveEffect) -> Result{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Light::morph_effect (line 2214) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:2236:42 [INFO] [stdout] | [INFO] [stdout] 23 | morph_effect.duration = Some(0); [INFO] [stdout] | ---- ^ expected `f64`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `{integer}` due to the type of the argument passed [INFO] [stdout] --> src/lib.rs:2236:37 [INFO] [stdout] | [INFO] [stdout] 23 | morph_effect.duration = Some(0); [INFO] [stdout] | ^^^^^-^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/core/src/option.rs:601:5 [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 23 | morph_effect.duration = Some(0.0); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:2246:50 [INFO] [stdout] | [INFO] [stdout] 33 | let results = light.morph_effect(key.clone(), morph_effect.clone()); [INFO] [stdout] | ------------ ^^^^^^^^^^^ expected `LifxConfig`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:2255:12 [INFO] [stdout] | [INFO] [stdout] 2255 | pub fn morph_effect(&self, config: LifxConfig, morph_effect: MorphEffect) -> Result{ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Light::effects_off (line 1882) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:1906:49 [INFO] [stdout] | [INFO] [stdout] 25 | let results = light.effects_off(key.clone(), effects_off.clone()); [INFO] [stdout] | ----------- ^^^^^^^^^^^ expected `LifxConfig`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:1915:12 [INFO] [stdout] | [INFO] [stdout] 1915 | pub fn effects_off(&self, config: LifxConfig, effects_off: EffectsOff) -> Result{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Light::morph_effect_by_selector (line 2269) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:2286:34 [INFO] [stdout] | [INFO] [stdout] 18 | morph_effect.duration = Some(0); [INFO] [stdout] | ---- ^ expected `f64`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `{integer}` due to the type of the argument passed [INFO] [stdout] --> src/lib.rs:2286:29 [INFO] [stdout] | [INFO] [stdout] 18 | morph_effect.duration = Some(0); [INFO] [stdout] | ^^^^^-^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/core/src/option.rs:601:5 [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 18 | morph_effect.duration = Some(0.0); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:2296:43 [INFO] [stdout] | [INFO] [stdout] 28 | lifx::Light::morph_effect_by_selector(key.clone(), format!("all"), morph_effect); [INFO] [stdout] | ------------------------------------- ^^^^^^^^^^^ expected `LifxConfig`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:2300:12 [INFO] [stdout] | [INFO] [stdout] 2300 | pub fn morph_effect_by_selector(config: LifxConfig, selector: String, morph_effect: MorphEffect) -> Result src/lib.rs:2413:42 [INFO] [stdout] | [INFO] [stdout] 23 | lifx::Light::move_effect_by_selector(key.clone(), format!("all"), move_effect); [INFO] [stdout] | ------------------------------------ ^^^^^^^^^^^ expected `LifxConfig`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:2417:12 [INFO] [stdout] | [INFO] [stdout] 2417 | pub fn move_effect_by_selector(config: LifxConfig, selector: String, move_effect: MoveEffect) -> Result{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Light::toggle_by_selector (line 2904) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:2923:37 [INFO] [stdout] | [INFO] [stdout] 20 | lifx::Light::toggle_by_selector(key.clone(), format!("all"), toggle); [INFO] [stdout] | ------------------------------- ^^^^^^^^^^^ expected `LifxConfig`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:2927:12 [INFO] [stdout] | [INFO] [stdout] 2927 | pub fn toggle_by_selector(config: LifxConfig, selector: String, toggle: Toggle) -> Result{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Light::toggle (line 2857) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `clean` in this scope [INFO] [stdout] --> src/lib.rs:2881:57 [INFO] [stdout] | [INFO] [stdout] 25 | let results = light.toggle(key.clone(), clean.clone()); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:2881:44 [INFO] [stdout] | [INFO] [stdout] 25 | let results = light.toggle(key.clone(), clean.clone()); [INFO] [stdout] | ------ ^^^^^^^^^^^ expected `LifxConfig`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:2890:12 [INFO] [stdout] | [INFO] [stdout] 2890 | pub fn toggle(&self, config: LifxConfig, toggle: Toggle) -> Result{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Light::set_state_by_selector (line 2627) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:2646:40 [INFO] [stdout] | [INFO] [stdout] 20 | lifx::Light::set_state_by_selector(key.clone(), format!("all"), off_state); [INFO] [stdout] | ---------------------------------- ^^^^^^^^^^^ expected `LifxConfig`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:2650:12 [INFO] [stdout] | [INFO] [stdout] 2650 | pub fn set_state_by_selector(config: LifxConfig, selector: String, state: State) -> Result{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Light::set_states (line 2697) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:2729:29 [INFO] [stdout] | [INFO] [stdout] 33 | lifx::Light::set_states(key.clone(), set_states); [INFO] [stdout] | ----------------------- ^^^^^^^^^^^ expected `LifxConfig`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:2733:12 [INFO] [stdout] | [INFO] [stdout] 2733 | pub fn set_states(config: LifxConfig, states: States) -> Result{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Light::set_state (line 2579) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:2604:47 [INFO] [stdout] | [INFO] [stdout] 26 | let results = light.set_state(key.clone(), state.clone()); [INFO] [stdout] | --------- ^^^^^^^^^^^ expected `LifxConfig`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:2613:12 [INFO] [stdout] | [INFO] [stdout] 2613 | pub fn set_state(&self, config: LifxConfig, state: State) -> Result{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Light::pulse_effect_by_selector (line 2507) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:2525:25 [INFO] [stdout] | [INFO] [stdout] 19 | pulse.period = Some(10); [INFO] [stdout] | ---- ^^ expected `f64`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `{integer}` due to the type of the argument passed [INFO] [stdout] --> src/lib.rs:2525:20 [INFO] [stdout] | [INFO] [stdout] 19 | pulse.period = Some(10); [INFO] [stdout] | ^^^^^--^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/core/src/option.rs:601:5 [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 19 | pulse.period = Some(10.0); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:2530:43 [INFO] [stdout] | [INFO] [stdout] 24 | lifx::Light::pulse_effect_by_selector(key.clone(), format!("all"), pulse); [INFO] [stdout] | ------------------------------------- ^^^^^^^^^^^ expected `LifxConfig`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:2534:12 [INFO] [stdout] | [INFO] [stdout] 2534 | pub fn pulse_effect_by_selector(config: LifxConfig, selector: String, pulse_effect: PulseEffect) -> Result src/lib.rs:3874:25 [INFO] [stdout] | [INFO] [stdout] 19 | pulse.period = Some(10); [INFO] [stdout] | ---- ^^ expected `f64`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `{integer}` due to the type of the argument passed [INFO] [stdout] --> src/lib.rs:3874:20 [INFO] [stdout] | [INFO] [stdout] 19 | pulse.period = Some(10); [INFO] [stdout] | ^^^^^--^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/core/src/option.rs:601:5 [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 19 | pulse.period = Some(10.0); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Light::state_delta_by_selector (line 2783) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `toggle` in this scope [INFO] [stdout] --> src/lib.rs:2803:71 [INFO] [stdout] | [INFO] [stdout] 21 | lifx::Light::state_delta_by_selector(key.clone(), format!("all"), toggle); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:2799:27 [INFO] [stdout] | [INFO] [stdout] 17 | delta.duration = Some(0); [INFO] [stdout] | ---- ^ expected `f64`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `{integer}` due to the type of the argument passed [INFO] [stdout] --> src/lib.rs:2799:22 [INFO] [stdout] | [INFO] [stdout] 17 | delta.duration = Some(0); [INFO] [stdout] | ^^^^^-^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/core/src/option.rs:601:5 [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 17 | delta.duration = Some(0.0); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:2803:42 [INFO] [stdout] | [INFO] [stdout] 21 | lifx::Light::state_delta_by_selector(key.clone(), format!("all"), toggle); [INFO] [stdout] | ------------------------------------ ^^^^^^^^^^^ expected `LifxConfig`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:2807:12 [INFO] [stdout] | [INFO] [stdout] 2807 | pub fn state_delta_by_selector(config: LifxConfig, selector: String, delta: StateDelta) -> Result{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Scene::async_list (line 2995) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/lib.rs:2997:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:3011:55 [INFO] [stdout] | [INFO] [stdout] 4 | async fn main() { [INFO] [stdout] | _________________- [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | let key = "xxx".to_string(); [INFO] [stdout] 7 | | let mut api_endpoints: Vec = Vec::new(); [INFO] [stdout] ... | [INFO] [stdout] 17 | | let scenes = lifx::Scene::async_list(config).await?; [INFO] [stdout] | | ^ cannot use the `?` operator in an async function that returns `()` [INFO] [stdout] 18 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/lib.rs:2998:1 [INFO] [stdout] | [INFO] [stdout] 4 | async fn main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Scene::list (line 3053) stdout ---- [INFO] [stdout] error[E0599]: no function or associated item named `list_all` found for struct `Scene` in the current scope [INFO] [stdout] --> src/lib.rs:3068:31 [INFO] [stdout] | [INFO] [stdout] 16 | let scenes = lifx::Scene::list_all(config)?; [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `Scene` [INFO] [stdout] | [INFO] [stdout] help: there is an associated function `list` with a similar name [INFO] [stdout] | [INFO] [stdout] 16 - let scenes = lifx::Scene::list_all(config)?; [INFO] [stdout] 16 + let scenes = lifx::Scene::list(config)?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - StateDelta::new (line 3474) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:3490:27 [INFO] [stdout] | [INFO] [stdout] 17 | delta.duration = Some(0); [INFO] [stdout] | ---- ^ expected `f64`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `{integer}` due to the type of the argument passed [INFO] [stdout] --> src/lib.rs:3490:22 [INFO] [stdout] | [INFO] [stdout] 17 | delta.duration = Some(0); [INFO] [stdout] | ^^^^^-^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/core/src/option.rs:601:5 [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 17 | delta.duration = Some(0.0); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - MorphEffect::new (line 3761) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:3778:34 [INFO] [stdout] | [INFO] [stdout] 18 | morph_effect.duration = Some(0); [INFO] [stdout] | ---- ^ expected `f64`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `{integer}` due to the type of the argument passed [INFO] [stdout] --> src/lib.rs:3778:29 [INFO] [stdout] | [INFO] [stdout] 18 | morph_effect.duration = Some(0); [INFO] [stdout] | ^^^^^-^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/core/src/option.rs:601:5 [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 18 | morph_effect.duration = Some(0.0); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:3781:18 [INFO] [stdout] | [INFO] [stdout] 21 | palette.push("red"); [INFO] [stdout] | ---- ^^^^^ expected `String`, found `&str` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/alloc/src/vec/mod.rs:2571:12 [INFO] [stdout] help: try using a conversion method [INFO] [stdout] | [INFO] [stdout] 21 | palette.push("red".to_string()); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:3782:18 [INFO] [stdout] | [INFO] [stdout] 22 | palette.push("green"); [INFO] [stdout] | ---- ^^^^^^^ expected `String`, found `&str` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/alloc/src/vec/mod.rs:2571:12 [INFO] [stdout] help: try using a conversion method [INFO] [stdout] | [INFO] [stdout] 22 | palette.push("green".to_string()); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 103) [INFO] [stdout] src/lib.rs - (line 48) [INFO] [stdout] src/lib.rs - BreatheEffect::new (line 3578) [INFO] [stdout] src/lib.rs - Color::async_validate (line 3125) [INFO] [stdout] src/lib.rs - Color::validate (line 3182) [INFO] [stdout] src/lib.rs - FlameEffect::new (line 3998) [INFO] [stdout] src/lib.rs - Light::async_breathe_effect (line 219) [INFO] [stdout] src/lib.rs - Light::async_breathe_effect_by_selector (line 271) [INFO] [stdout] src/lib.rs - Light::async_clean (line 350) [INFO] [stdout] src/lib.rs - Light::async_clean_by_selector (line 399) [INFO] [stdout] src/lib.rs - Light::async_effects_off (line 475) [INFO] [stdout] src/lib.rs - Light::async_effects_off_by_selector (line 523) [INFO] [stdout] src/lib.rs - Light::async_flame_effect (line 600) [INFO] [stdout] src/lib.rs - Light::async_flame_effect_by_selector (line 650) [INFO] [stdout] src/lib.rs - Light::async_list_all (line 726) [INFO] [stdout] src/lib.rs - Light::async_list_by_selector (line 759) [INFO] [stdout] src/lib.rs - Light::async_morph_effect (line 817) [INFO] [stdout] src/lib.rs - Light::async_morph_effect_by_selector (line 873) [INFO] [stdout] src/lib.rs - Light::async_move_effect (line 951) [INFO] [stdout] src/lib.rs - Light::async_move_effect_by_selector (line 1002) [INFO] [stdout] src/lib.rs - Light::async_pulse_effect (line 1079) [INFO] [stdout] src/lib.rs - Light::async_pulse_effect_by_selector (line 1131) [INFO] [stdout] src/lib.rs - Light::async_set_state (line 1213) [INFO] [stdout] src/lib.rs - Light::async_set_state_by_selector (line 1262) [INFO] [stdout] src/lib.rs - Light::async_set_states (line 1335) [INFO] [stdout] src/lib.rs - Light::async_state_delta_by_selector (line 1425) [INFO] [stdout] src/lib.rs - Light::async_toggle (line 1502) [INFO] [stdout] src/lib.rs - Light::async_toggle_by_selector (line 1550) [INFO] [stdout] src/lib.rs - Light::breathe_by_selector_effect (line 1683) [INFO] [stdout] src/lib.rs - Light::breathe_effect (line 1632) [INFO] [stdout] src/lib.rs - Light::clean (line 1760) [INFO] [stdout] src/lib.rs - Light::clean_by_selector (line 1808) [INFO] [stdout] src/lib.rs - Light::effects_off (line 1882) [INFO] [stdout] src/lib.rs - Light::effects_off_by_selector (line 1929) [INFO] [stdout] src/lib.rs - Light::flame_effect (line 2002) [INFO] [stdout] src/lib.rs - Light::flame_effect_by_selector (line 2051) [INFO] [stdout] src/lib.rs - Light::list_all (line 2124) [INFO] [stdout] src/lib.rs - Light::list_by_selector (line 2156) [INFO] [stdout] src/lib.rs - Light::morph_effect (line 2214) [INFO] [stdout] src/lib.rs - Light::morph_effect_by_selector (line 2269) [INFO] [stdout] src/lib.rs - Light::move_effect (line 2341) [INFO] [stdout] src/lib.rs - Light::move_effect_by_selector (line 2391) [INFO] [stdout] src/lib.rs - Light::pulse_effect (line 2456) [INFO] [stdout] src/lib.rs - Light::pulse_effect_by_selector (line 2507) [INFO] [stdout] src/lib.rs - Light::set_state (line 2579) [INFO] [stdout] src/lib.rs - Light::set_state_by_selector (line 2627) [INFO] [stdout] src/lib.rs - Light::set_states (line 2697) [INFO] [stdout] src/lib.rs - Light::state_delta_by_selector (line 2783) [INFO] [stdout] src/lib.rs - Light::toggle (line 2857) [INFO] [stdout] src/lib.rs - Light::toggle_by_selector (line 2904) [INFO] [stdout] src/lib.rs - MorphEffect::new (line 3761) [INFO] [stdout] src/lib.rs - PulseEffect::new (line 3856) [INFO] [stdout] src/lib.rs - Scene::async_list (line 2995) [INFO] [stdout] src/lib.rs - Scene::list (line 3053) [INFO] [stdout] src/lib.rs - StateDelta::new (line 3474) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 6 passed; 55 failed; 0 ignored; 0 measured; 0 filtered out; finished in 6.58s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "fe9b3c683b734fcc9187dcb1cdc29f65fd45ae0abf16a6756df5b7872766ea95", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fe9b3c683b734fcc9187dcb1cdc29f65fd45ae0abf16a6756df5b7872766ea95", kill_on_drop: false }` [INFO] [stdout] fe9b3c683b734fcc9187dcb1cdc29f65fd45ae0abf16a6756df5b7872766ea95