[INFO] fetching crate lifx-rs 0.1.30... [INFO] testing lifx-rs-0.1.30 against try#dec9417b8611e34e787a3e4c37686b5131f9e5c5 for pr-154210-1 [INFO] extracting crate lifx-rs 0.1.30 into /workspace/builds/worker-5-tc2/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-5-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate lifx-rs 0.1.30 on toolchain dec9417b8611e34e787a3e4c37686b5131f9e5c5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "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" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 202 packages to latest compatible versions [INFO] [stderr] Adding reqwest v0.11.27 (available: v0.13.2) [INFO] [stderr] Adding thiserror v1.0.69 (available: v2.0.18) [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" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 83d1138e09dd126a54bf3d92c13a7b0a39282f382533263a8106d96fe9e05a79 [INFO] running `Command { std: "docker" "start" "-a" "83d1138e09dd126a54bf3d92c13a7b0a39282f382533263a8106d96fe9e05a79", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "83d1138e09dd126a54bf3d92c13a7b0a39282f382533263a8106d96fe9e05a79", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "83d1138e09dd126a54bf3d92c13a7b0a39282f382533263a8106d96fe9e05a79", kill_on_drop: false }` [INFO] [stdout] 83d1138e09dd126a54bf3d92c13a7b0a39282f382533263a8106d96fe9e05a79 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5b0cf5839aebe2ded6bdc346568a671bf39aaefa86d4702e570818842126ff74 [INFO] running `Command { std: "docker" "start" "-a" "5b0cf5839aebe2ded6bdc346568a671bf39aaefa86d4702e570818842126ff74", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.8.0 [INFO] [stderr] Compiling openssl-sys v0.9.112 [INFO] [stderr] Compiling futures-io v0.3.32 [INFO] [stderr] Compiling futures-channel v0.3.32 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling tokio v1.51.1 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Compiling tinyvec v1.11.0 [INFO] [stderr] Compiling unicode-bidi v0.3.18 [INFO] [stderr] Compiling ipnet v2.12.0 [INFO] [stderr] Compiling matches v0.1.10 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling data-encoding v2.10.0 [INFO] [stderr] Compiling ryu v1.0.23 [INFO] [stderr] Compiling url v2.5.8 [INFO] [stderr] Compiling lru-cache v0.1.2 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling resolv-conf v0.7.6 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling parking_lot v0.12.5 [INFO] [stderr] Compiling unicode-normalization v0.1.25 [INFO] [stderr] Compiling openssl v0.10.76 [INFO] [stderr] Compiling native-tls v0.2.18 [INFO] [stderr] Compiling futures-util v0.3.32 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling tracing v0.1.44 [INFO] [stderr] Compiling enum-as-inner v0.5.1 [INFO] [stderr] Compiling tokio-util v0.7.18 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling trust-dns-proto v0.22.0 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling trust-dns-resolver v0.22.0 [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 33.04s [INFO] running `Command { std: "docker" "inspect" "5b0cf5839aebe2ded6bdc346568a671bf39aaefa86d4702e570818842126ff74", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5b0cf5839aebe2ded6bdc346568a671bf39aaefa86d4702e570818842126ff74", kill_on_drop: false }` [INFO] [stdout] 5b0cf5839aebe2ded6bdc346568a671bf39aaefa86d4702e570818842126ff74 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 014824d458a6fe4276f1ad0707a755d2dceb4b378abc30687ded52ced21b2000 [INFO] running `Command { std: "docker" "start" "-a" "014824d458a6fe4276f1ad0707a755d2dceb4b378abc30687ded52ced21b2000", 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.89s [INFO] running `Command { std: "docker" "inspect" "014824d458a6fe4276f1ad0707a755d2dceb4b378abc30687ded52ced21b2000", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "014824d458a6fe4276f1ad0707a755d2dceb4b378abc30687ded52ced21b2000", kill_on_drop: false }` [INFO] [stdout] 014824d458a6fe4276f1ad0707a755d2dceb4b378abc30687ded52ced21b2000 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 0e0cb5279295db20729579ac9cbfe0493d9b8a29fb0dec4d5172befcfef1e44c [INFO] running `Command { std: "docker" "start" "-a" "0e0cb5279295db20729579ac9cbfe0493d9b8a29fb0dec4d5172befcfef1e44c", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.37s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/lifx_rs-36eb8d44c4f540d6) [INFO] [stdout] [INFO] [stdout] running 10 tests [INFO] [stdout] test lan::tests::test_decode_frame1 ... ok [INFO] [stdout] test lan::tests::test_decode_full ... ok [INFO] [stdout] test lan::tests::test_build_a_packet ... 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] test lan::tests::test_decode_frame ... ok [INFO] [stdout] test lan::tests::test_decode_frame_address ... ok [INFO] [stdout] test lan::tests::test_decode_protocol_header ... ok [INFO] [stderr] Doc-tests lifx_rs [INFO] [stdout] test lan::tests::test_decode_full_1 ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 10 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [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 - 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_flame_effect (line 600) ... FAILED [INFO] [stdout] test src/lib.rs - Light::async_list_all (line 726) ... FAILED [INFO] [stdout] test src/lib.rs - (line 103) ... FAILED [INFO] [stdout] test src/lib.rs - Color::async_validate (line 3125) ... FAILED [INFO] [stdout] test src/lib.rs - Light::async_effects_off_by_selector (line 523) ... FAILED [INFO] [stdout] test src/lib.rs - Light::async_breathe_effect (line 219) ... FAILED [INFO] [stdout] test src/lib.rs - Light::async_clean_by_selector (line 399) ... FAILED [INFO] [stdout] test src/lib.rs - Light::async_list_by_selector (line 759) ... 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_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_pulse_effect (line 1079) ... FAILED [INFO] [stdout] test src/lib.rs - BreatheEffect::new (line 3578) ... FAILED [INFO] [stdout] test src/lib.rs - Light::async_set_state (line 1213) ... FAILED [INFO] [stdout] test src/lib.rs - (line 48) ... FAILED [INFO] [stdout] test src/lib.rs - Light::async_morph_effect (line 817) ... FAILED [INFO] [stdout] test src/lib.rs - Light::async_effects_off (line 475) ... FAILED [INFO] [stdout] test src/lib.rs - Light::async_morph_effect_by_selector (line 873) ... FAILED [INFO] [stdout] test src/lib.rs - Light::async_pulse_effect_by_selector (line 1131) ... FAILED [INFO] [stdout] test src/lib.rs - Light::async_set_states (line 1335) ... FAILED [INFO] [stdout] test src/lib.rs - Light::async_flame_effect_by_selector (line 650) ... FAILED [INFO] [stdout] test src/lib.rs - Light::breathe_by_selector_effect (line 1683) ... FAILED [INFO] [stdout] test src/lib.rs - Light::clean (line 1760) ... FAILED [INFO] [stdout] test src/lib.rs - Light::async_state_delta_by_selector (line 1425) ... FAILED [INFO] [stdout] test src/lib.rs - Light::effects_off (line 1882) ... FAILED [INFO] [stdout] test src/lib.rs - Light::breathe_effect (line 1632) ... FAILED [INFO] [stdout] test src/lib.rs - Light::clean_by_selector (line 1808) ... FAILED [INFO] [stdout] test src/lib.rs - Light::async_toggle_by_selector (line 1550) ... FAILED [INFO] [stdout] test src/lib.rs - Light::flame_effect (line 2002) ... FAILED [INFO] [stdout] test src/lib.rs - Light::effects_off_by_selector (line 1929) ... FAILED [INFO] [stdout] test src/lib.rs - Light::pulse_effect_by_selector (line 2507) ... 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 - EffectsOff::new (line 3940) ... ok [INFO] [stdout] test src/lib.rs - Light::list_all (line 2124) ... FAILED [INFO] [stdout] test src/lib.rs - Light::async_toggle (line 1502) ... FAILED [INFO] [stdout] test src/lib.rs - Light::state_delta_by_selector (line 2783) ... FAILED [INFO] [stdout] test src/lib.rs - Light::morph_effect (line 2214) ... 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 (line 2857) ... FAILED [INFO] [stdout] test src/lib.rs - Light::flame_effect_by_selector (line 2051) ... FAILED [INFO] [stdout] test src/lib.rs - Light::set_state (line 2579) ... FAILED [INFO] [stdout] test src/lib.rs - Light::set_state_by_selector (line 2627) ... FAILED [INFO] [stdout] test src/lib.rs - Light::move_effect (line 2341) ... FAILED [INFO] [stdout] test src/lib.rs - Scene::async_list (line 2995) ... FAILED [INFO] [stdout] test src/lib.rs - Light::set_states (line 2697) ... FAILED [INFO] [stdout] test src/lib.rs - Light::toggle_by_selector (line 2904) ... FAILED [INFO] [stdout] test src/lib.rs - MorphEffect::new (line 3761) ... 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 - PulseEffect::new (line 3856) ... FAILED [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 - States::new (line 3421) ... ok [INFO] [stdout] test src/lib.rs - (line 53) ... 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] 3197 | 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] --> 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] 3197 | 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] 3184 | fn main() { [INFO] [stdout] | --------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 3197 | 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] 3184 ~ fn main() -> Result<(), Box> { [INFO] [stdout] 3185 | [INFO] [stdout] ... [INFO] [stdout] 3197 | let scenes = lifx::Color::validate(config)?; [INFO] [stdout] 3198 + 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] 4015 | 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] 4015 | 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/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/option.rs:608:4 [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 4015 | 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 - Light::async_clean (line 350) stdout ---- [INFO] [stdout] error[E0433]: cannot find module or crate `tokio` in this scope [INFO] [stdout] --> src/lib.rs:352:3 [INFO] [stdout] | [INFO] [stdout] 352 | #[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] 376 | 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] --> 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] 353 | 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]: cannot find module or crate `tokio` in this scope [INFO] [stdout] --> src/lib.rs:273:3 [INFO] [stdout] | [INFO] [stdout] 273 | #[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] 290 | 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] 290 | 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/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/option.rs:608:4 [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 290 | 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] 295 | 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] --> 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] 274 | 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]: cannot find module or crate `tokio` in this scope [INFO] [stdout] --> src/lib.rs:602:3 [INFO] [stdout] | [INFO] [stdout] 602 | #[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] 623 | 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] 623 | 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/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/option.rs:608:4 [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 623 | 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] 627 | 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] --> 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] 603 | 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_all (line 726) stdout ---- [INFO] [stdout] error[E0433]: cannot find module or crate `tokio` in this scope [INFO] [stdout] --> src/lib.rs:728:3 [INFO] [stdout] | [INFO] [stdout] 728 | #[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] 729 | async fn main() { [INFO] [stdout] | _________________- [INFO] [stdout] 730 | | [INFO] [stdout] 731 | | let key = "xxx".to_string(); [INFO] [stdout] 732 | | let mut api_endpoints: Vec = Vec::new(); [INFO] [stdout] ... | [INFO] [stdout] 742 | | let all_lights = lifx::Light::async_list_all(config).await?; [INFO] [stdout] | | ^ cannot use the `?` operator in an async function that returns `()` [INFO] [stdout] 743 | | } [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] 729 | 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 - (line 103) stdout ---- [INFO] [stdout] error[E0433]: cannot find module or crate `tokio` in this scope [INFO] [stdout] --> src/lib.rs:105:3 [INFO] [stdout] | [INFO] [stdout] 105 | #[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] 106 | 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 - Color::async_validate (line 3125) stdout ---- [INFO] [stdout] error[E0433]: cannot find module or crate `tokio` in this scope [INFO] [stdout] --> src/lib.rs:3127:3 [INFO] [stdout] | [INFO] [stdout] 3127 | #[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] 3141 | 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] --> 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] 3128 | async fn main() { [INFO] [stdout] | _________________- [INFO] [stdout] 3129 | | [INFO] [stdout] 3130 | | let key = "xxx".to_string(); [INFO] [stdout] 3131 | | let mut api_endpoints: Vec = Vec::new(); [INFO] [stdout] ... | [INFO] [stdout] 3141 | | let scenes = lifx::Color::async_validate(key, format!("red")).await?; [INFO] [stdout] | | ^ cannot use the `?` operator in an async function that returns `()` [INFO] [stdout] 3142 | | } [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] 3128 | 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_effects_off_by_selector (line 523) stdout ---- [INFO] [stdout] error[E0433]: cannot find module or crate `tokio` in this scope [INFO] [stdout] --> src/lib.rs:525:3 [INFO] [stdout] | [INFO] [stdout] 525 | #[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] 543 | 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] --> 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] 526 | 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 (line 219) stdout ---- [INFO] [stdout] error[E0433]: cannot find module or crate `tokio` in this scope [INFO] [stdout] --> src/lib.rs:221:3 [INFO] [stdout] | [INFO] [stdout] 221 | #[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] 243 | 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] 243 | 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/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/option.rs:608:4 [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 243 | 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] 248 | 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] --> 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] 222 | 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_clean_by_selector (line 399) stdout ---- [INFO] [stdout] error[E0433]: cannot find module or crate `tokio` in this scope [INFO] [stdout] --> src/lib.rs:401:3 [INFO] [stdout] | [INFO] [stdout] 401 | #[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] 420 | 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] --> 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] 402 | 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_list_by_selector (line 759) stdout ---- [INFO] [stdout] error[E0433]: cannot find module or crate `tokio` in this scope [INFO] [stdout] --> src/lib.rs:761:3 [INFO] [stdout] | [INFO] [stdout] 761 | #[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] 775 | 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] --> 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] 762 | async fn main() { [INFO] [stdout] | _________________- [INFO] [stdout] 763 | | [INFO] [stdout] 764 | | let key = "xxx".to_string(); [INFO] [stdout] 765 | | let mut api_endpoints: Vec = Vec::new(); [INFO] [stdout] ... | [INFO] [stdout] 775 | | 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] 776 | | } [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] 762 | 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_move_effect_by_selector (line 1002) stdout ---- [INFO] [stdout] error[E0433]: cannot find module or crate `tokio` in this scope [INFO] [stdout] --> src/lib.rs:1004:3 [INFO] [stdout] | [INFO] [stdout] 1004 | #[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] 1025 | 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] --> 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] 1005 | 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]: cannot find module or crate `tokio` in this scope [INFO] [stdout] --> src/lib.rs:1264:3 [INFO] [stdout] | [INFO] [stdout] 1264 | #[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] 1282 | 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] --> 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 src/lib.rs:1265:1 [INFO] [stdout] | [INFO] [stdout] 1265 | 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]: cannot find module or crate `tokio` in this scope [INFO] [stdout] --> src/lib.rs:953:3 [INFO] [stdout] | [INFO] [stdout] 953 | #[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] 979 | 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] --> 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] 954 | 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]: cannot find module or crate `tokio` in this scope [INFO] [stdout] --> src/lib.rs:1081:3 [INFO] [stdout] | [INFO] [stdout] 1081 | #[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] 1103 | 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] 1103 | 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/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/option.rs:608:4 [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 1103 | 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] 1108 | 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] --> 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] 1082 | 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 - BreatheEffect::new (line 3578) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:3596:27 [INFO] [stdout] | [INFO] [stdout] 3596 | 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] 3596 | 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/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/option.rs:608:4 [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 3596 | 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 - Light::async_set_state (line 1213) stdout ---- [INFO] [stdout] error[E0433]: cannot find module or crate `tokio` in this scope [INFO] [stdout] --> src/lib.rs:1215:3 [INFO] [stdout] | [INFO] [stdout] 1215 | #[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] 1239 | 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] --> 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] 1216 | 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] 49 | 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] 49 | 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] 49 | 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_morph_effect (line 817) stdout ---- [INFO] [stdout] error[E0433]: cannot find module or crate `tokio` in this scope [INFO] [stdout] --> src/lib.rs:819:3 [INFO] [stdout] | [INFO] [stdout] 819 | #[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] 840 | 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] 840 | 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/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/option.rs:608:4 [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 840 | 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] 850 | 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] --> 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] 820 | 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 (line 475) stdout ---- [INFO] [stdout] error[E0433]: cannot find module or crate `tokio` in this scope [INFO] [stdout] --> src/lib.rs:477:3 [INFO] [stdout] | [INFO] [stdout] 477 | #[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] 500 | 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] --> 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] 478 | 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_morph_effect_by_selector (line 873) stdout ---- [INFO] [stdout] error[E0433]: cannot find module or crate `tokio` in this scope [INFO] [stdout] --> src/lib.rs:875:3 [INFO] [stdout] | [INFO] [stdout] 875 | #[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] 891 | 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] 891 | 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/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/option.rs:608:4 [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 891 | 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] 901 | 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] --> 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] 876 | 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]: cannot find module or crate `tokio` in this scope [INFO] [stdout] --> src/lib.rs:1133:3 [INFO] [stdout] | [INFO] [stdout] 1133 | #[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] 1150 | 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] 1150 | 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/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/option.rs:608:4 [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 1150 | 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] 1155 | 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] --> 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] 1134 | 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_set_states (line 1335) stdout ---- [INFO] [stdout] error[E0433]: cannot find module or crate `tokio` in this scope [INFO] [stdout] --> src/lib.rs:1337:3 [INFO] [stdout] | [INFO] [stdout] 1337 | #[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] 1368 | 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] --> 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] 1338 | 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]: cannot find module or crate `tokio` in this scope [INFO] [stdout] --> src/lib.rs:652:3 [INFO] [stdout] | [INFO] [stdout] 652 | #[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] 668 | 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] 668 | 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/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/option.rs:608:4 [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 668 | 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] 672 | 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] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> 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] 653 | 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] 1701 | 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] 1701 | 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/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/option.rs:608:4 [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 1701 | 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] 1706 | 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] --> src/lib.rs:1710:12 [INFO] [stdout] | [INFO] [stdout] 1710 | pub fn breathe_by_selector_effect(config: LifxConfig, selector: String, breathe: BreatheEffect) -> Result src/lib.rs:1785:43 [INFO] [stdout] | [INFO] [stdout] 1785 | 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] --> 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::async_state_delta_by_selector (line 1425) stdout ---- [INFO] [stdout] error[E0433]: cannot find module or crate `tokio` in this scope [INFO] [stdout] --> src/lib.rs:1427:3 [INFO] [stdout] | [INFO] [stdout] 1427 | #[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] 1446 | 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] 1442 | 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] 1442 | 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/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/option.rs:608:4 [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 1442 | 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] 1446 | 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] --> 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] 1428 | 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::effects_off (line 1882) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:1906:49 [INFO] [stdout] | [INFO] [stdout] 1906 | 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] --> 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::breathe_effect (line 1632) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:1655:35 [INFO] [stdout] | [INFO] [stdout] 1655 | 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] 1655 | 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/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/option.rs:608:4 [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 1655 | 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] 1660 | 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] --> 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::clean_by_selector (line 1808) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:1828:36 [INFO] [stdout] | [INFO] [stdout] 1828 | 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] --> 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_toggle_by_selector (line 1550) stdout ---- [INFO] [stdout] error[E0433]: cannot find module or crate `tokio` in this scope [INFO] [stdout] --> src/lib.rs:1552:3 [INFO] [stdout] | [INFO] [stdout] 1552 | #[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] 1570 | 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] --> src/lib.rs:1574:18 [INFO] [stdout] | [INFO] [stdout] 1574 | pub async fn async_toggle_by_selector(config: LifxConfig, selector: String, toggle: Toggle) -> Result src/lib.rs:1570:88 [INFO] [stdout] | [INFO] [stdout] 1553 | async fn main() { [INFO] [stdout] | _________________- [INFO] [stdout] 1554 | | [INFO] [stdout] 1555 | | let key = "xxx".to_string(); [INFO] [stdout] 1556 | | let mut api_endpoints: Vec = Vec::new(); [INFO] [stdout] ... | [INFO] [stdout] 1570 | | 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] 1571 | | } [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] 1553 | async fn main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find module or crate `lifx` in this scope [INFO] [stdout] --> src/lib.rs:1561:18 [INFO] [stdout] | [INFO] [stdout] 1561 | 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::flame_effect (line 2002) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:2024:42 [INFO] [stdout] | [INFO] [stdout] 2024 | 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] 2024 | 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/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/option.rs:608:4 [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 2024 | 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] 2028 | 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] --> 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::effects_off_by_selector (line 1929) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:1948:42 [INFO] [stdout] | [INFO] [stdout] 1948 | 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] --> src/lib.rs:1952:12 [INFO] [stdout] | [INFO] [stdout] 1952 | pub fn effects_off_by_selector(config: LifxConfig, selector: String, effects_off: EffectsOff) -> Result src/lib.rs:2525:25 [INFO] [stdout] | [INFO] [stdout] 2525 | 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] 2525 | 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/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/option.rs:608:4 [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 2525 | 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] 2530 | 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] --> 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:2171:52 [INFO] [stdout] | [INFO] [stdout] 2171 | 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] --> 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] 2158 | fn main() { [INFO] [stdout] | --------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 2171 | 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] 2158 ~ fn main() -> Result<(), Box> { [INFO] [stdout] 2159 | [INFO] [stdout] ... [INFO] [stdout] 2171 | let all_lights = lifx::Light::list_by_selector(key, format!("all"))?; [INFO] [stdout] 2172 + 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] 2479 | 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] 2479 | 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/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/option.rs:608:4 [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 2479 | 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] 2484 | 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] --> 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::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] 2126 | fn main() { [INFO] [stdout] | --------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 2139 | 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] 2126 ~ fn main() -> Result<(), Box> { [INFO] [stdout] 2127 | [INFO] [stdout] ... [INFO] [stdout] 2139 | let all_lights = lifx::Light::list_all(config)?; [INFO] [stdout] 2140 + 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::async_toggle (line 1502) stdout ---- [INFO] [stdout] error[E0433]: cannot find module or crate `tokio` in this scope [INFO] [stdout] --> src/lib.rs:1504:3 [INFO] [stdout] | [INFO] [stdout] 1504 | #[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] 1527 | 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] 1527 | 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] --> 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] 1505 | 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::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] 2803 | 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] 2799 | 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] 2799 | 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/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/option.rs:608:4 [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 2799 | 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] 2803 | 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] --> 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 - Light::morph_effect (line 2214) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:2236:42 [INFO] [stdout] | [INFO] [stdout] 2236 | 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] 2236 | 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/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/option.rs:608:4 [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 2236 | 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] 2246 | let results = light.morph_effect(key.clone(), morph_effect.clone()); [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [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] --> 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::morph_effect_by_selector (line 2269) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:2286:34 [INFO] [stdout] | [INFO] [stdout] 2286 | 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] 2286 | 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/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/option.rs:608:4 [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 2286 | 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] 2296 | 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] --> 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] 2413 | 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] --> src/lib.rs:2417:12 [INFO] [stdout] | [INFO] [stdout] 2417 | pub fn move_effect_by_selector(config: LifxConfig, selector: String, move_effect: MoveEffect) -> Result src/lib.rs:2881:57 [INFO] [stdout] | [INFO] [stdout] 2881 | 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] 2881 | 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] --> 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::flame_effect_by_selector (line 2051) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:2068:34 [INFO] [stdout] | [INFO] [stdout] 2068 | 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] 2068 | 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/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/option.rs:608:4 [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 2068 | 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] 2072 | 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] --> 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:2604:47 [INFO] [stdout] | [INFO] [stdout] 2604 | 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] --> 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::set_state_by_selector (line 2627) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:2646:40 [INFO] [stdout] | [INFO] [stdout] 2646 | 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] --> 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::move_effect (line 2341) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:2368:49 [INFO] [stdout] | [INFO] [stdout] 2368 | 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] --> 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 - Scene::async_list (line 2995) stdout ---- [INFO] [stdout] error[E0433]: cannot find module or crate `tokio` in this scope [INFO] [stdout] --> src/lib.rs:2997:3 [INFO] [stdout] | [INFO] [stdout] 2997 | #[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] 2998 | async fn main() { [INFO] [stdout] | _________________- [INFO] [stdout] 2999 | | [INFO] [stdout] 3000 | | let key = "xxx".to_string(); [INFO] [stdout] 3001 | | let mut api_endpoints: Vec = Vec::new(); [INFO] [stdout] ... | [INFO] [stdout] 3011 | | let scenes = lifx::Scene::async_list(config).await?; [INFO] [stdout] | | ^ cannot use the `?` operator in an async function that returns `()` [INFO] [stdout] 3012 | | } [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] 2998 | 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::set_states (line 2697) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:2729:29 [INFO] [stdout] | [INFO] [stdout] 2729 | 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] --> 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::toggle_by_selector (line 2904) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:2923:37 [INFO] [stdout] | [INFO] [stdout] 2923 | 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] --> 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 - MorphEffect::new (line 3761) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:3778:34 [INFO] [stdout] | [INFO] [stdout] 3778 | 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] 3778 | 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/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/option.rs:608:4 [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 3778 | 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] 3781 | 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/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/alloc/src/vec/mod.rs:995:11 [INFO] [stdout] help: try using a conversion method [INFO] [stdout] | [INFO] [stdout] 3781 | 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] 3782 | 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/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/alloc/src/vec/mod.rs:995:11 [INFO] [stdout] help: try using a conversion method [INFO] [stdout] | [INFO] [stdout] 3782 | 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] ---- 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] 3068 | 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] 3068 - let scenes = lifx::Scene::list_all(config)?; [INFO] [stdout] 3068 + 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] 3490 | 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] 3490 | 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/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/option.rs:608:4 [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 3490 | 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 - PulseEffect::new (line 3856) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:3874:25 [INFO] [stdout] | [INFO] [stdout] 3874 | 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] 3874 | 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/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/option.rs:608:4 [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 3874 | 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] [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 4.38s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "0e0cb5279295db20729579ac9cbfe0493d9b8a29fb0dec4d5172befcfef1e44c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0e0cb5279295db20729579ac9cbfe0493d9b8a29fb0dec4d5172befcfef1e44c", kill_on_drop: false }` [INFO] [stdout] 0e0cb5279295db20729579ac9cbfe0493d9b8a29fb0dec4d5172befcfef1e44c