[INFO] fetching crate zlayer-scheduler 0.9.994... [INFO] linting zlayer-scheduler-0.9.994 against nightly for clippy-nonminimal_bool-denied [INFO] extracting crate zlayer-scheduler 0.9.994 into /workspace/builds/worker-3-tc1/source [INFO] started tweaking crates.io crate zlayer-scheduler 0.9.994 [INFO] removed 0 missing examples [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate zlayer-scheduler 0.9.994 [INFO] tweaked toml for crates.io crate zlayer-scheduler 0.9.994 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate zlayer-scheduler 0.9.994 on toolchain nightly [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate zlayer-scheduler 0.9.994 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded validator v0.19.0 [INFO] [stderr] Downloaded cron v0.15.0 [INFO] [stderr] Downloaded validator_derive v0.19.0 [INFO] [stderr] Downloaded hdrhistogram v7.5.4 [INFO] [stderr] Downloaded openraft-macros v0.9.21 [INFO] [stderr] Downloaded byte-unit v5.2.0 [INFO] [stderr] Downloaded anyerror v0.1.13 [INFO] [stderr] Downloaded zlayer-consensus v0.9.994 [INFO] [stderr] Downloaded async-compression v0.4.40 [INFO] [stderr] Downloaded winnow v0.6.26 [INFO] [stderr] Downloaded zlayer-spec v0.9.994 [INFO] [stderr] Downloaded zlayer-core v0.9.994 [INFO] [stderr] Downloaded openraft v0.9.21 [INFO] [stderr] Downloaded validit v0.2.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5dd8eda9089efa3500c94b7f235b82509a09dd73b75adc54f46abea8300c959d [INFO] running `Command { std: "docker" "start" "-a" "5dd8eda9089efa3500c94b7f235b82509a09dd73b75adc54f46abea8300c959d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5dd8eda9089efa3500c94b7f235b82509a09dd73b75adc54f46abea8300c959d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5dd8eda9089efa3500c94b7f235b82509a09dd73b75adc54f46abea8300c959d", kill_on_drop: false }` [INFO] [stdout] 5dd8eda9089efa3500c94b7f235b82509a09dd73b75adc54f46abea8300c959d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "clippy" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5a06089a17a79dcdabaed3d2d3775d090e36cac919c765dd74d86472dd06b481 [INFO] running `Command { std: "docker" "start" "-a" "5a06089a17a79dcdabaed3d2d3775d090e36cac919c765dd74d86472dd06b481", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.116 [INFO] [stderr] Compiling libc v0.2.180 [INFO] [stderr] Checking indexmap v2.13.0 [INFO] [stderr] Compiling aws-lc-rs v1.16.0 [INFO] [stderr] Checking serde_json v1.0.149 [INFO] [stderr] Checking zerocopy v0.8.39 [INFO] [stderr] Compiling zstd-safe v7.2.4 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling getrandom v0.4.1 [INFO] [stderr] Compiling rustls v0.23.36 [INFO] [stderr] Checking crc32fast v1.5.0 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Checking sync_wrapper v1.0.2 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Checking hdrhistogram v7.5.4 [INFO] [stderr] Checking brotli v8.0.2 [INFO] [stderr] Compiling proc-macro-error-attr2 v2.0.0 [INFO] [stderr] Checking compression-core v0.4.31 [INFO] [stderr] Checking regex-automata v0.4.14 [INFO] [stderr] Checking http-range-header v0.4.2 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling rust_decimal v1.40.0 [INFO] [stderr] Checking flate2 v1.1.9 [INFO] [stderr] Checking tinyvec v1.10.0 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Compiling const_format_proc_macros v0.2.34 [INFO] [stderr] Compiling serde_yml v0.0.12 [INFO] [stderr] Compiling multer v3.1.0 [INFO] [stderr] Compiling iana-time-zone v0.1.65 [INFO] [stderr] Checking arrayvec v0.7.6 [INFO] [stderr] Checking data-encoding v2.10.0 [INFO] [stderr] Compiling regex-syntax v0.8.9 [INFO] [stderr] Checking clap_builder v4.5.59 [INFO] [stderr] Checking libyml v0.0.5 [INFO] [stderr] Checking unicode-normalization v0.1.25 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Checking strum v0.27.2 [INFO] [stderr] Checking winnow v0.6.26 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Checking errno v0.3.14 [INFO] [stderr] Checking mio v1.1.1 [INFO] [stderr] Checking signal-hook-registry v1.4.8 [INFO] [stderr] Checking socket2 v0.6.2 [INFO] [stderr] Checking getrandom v0.2.17 [INFO] [stderr] Checking getrandom v0.3.4 [INFO] [stderr] Checking const_format v0.2.35 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Compiling chrono v0.4.43 [INFO] [stderr] Checking byte-unit v5.2.0 [INFO] [stderr] Checking uuid v1.21.0 [INFO] [stderr] Checking rand_core v0.9.5 [INFO] [stderr] Compiling protobuf v2.28.0 [INFO] [stderr] Checking dirs-sys v0.4.1 [INFO] [stderr] Checking num_cpus v1.17.0 [INFO] [stderr] Checking serde_path_to_error v0.1.20 [INFO] [stderr] Checking http-auth v0.1.10 [INFO] [stderr] Checking humantime v2.3.0 [INFO] [stderr] Compiling jobserver v0.1.34 [INFO] [stderr] Checking maplit v1.0.2 [INFO] [stderr] Compiling prometheus v0.13.4 [INFO] [stderr] Compiling cc v1.2.56 [INFO] [stderr] Checking dirs v5.0.1 [INFO] [stderr] Checking deadpool-runtime v0.1.4 [INFO] [stderr] Checking rustix v1.1.3 [INFO] [stderr] Checking regex v1.12.3 [INFO] [stderr] Compiling cmake v0.1.57 [INFO] [stderr] Compiling zstd-sys v2.0.16+zstd.1.5.7 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling aws-lc-sys v0.37.1 [INFO] [stderr] Checking tempfile v3.25.0 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling proc-macro-error2 v2.0.1 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking ahash v0.8.12 [INFO] [stderr] Checking metrics v0.24.3 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling futures-macro v0.3.32 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Compiling thiserror-impl v2.0.18 [INFO] [stderr] Checking rand v0.9.2 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling getset v0.1.6 [INFO] [stderr] Checking tokio v1.49.0 [INFO] [stderr] Compiling clap_derive v4.5.55 [INFO] [stderr] Checking futures-util v0.3.32 [INFO] [stderr] Compiling derive_more-impl v1.0.0 [INFO] [stderr] Compiling strum_macros v0.27.2 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking zstd v0.13.3 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking yoke v0.8.1 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Compiling axum-macros v0.5.0 [INFO] [stderr] Checking thiserror v2.0.18 [INFO] [stderr] Checking compression-codecs v0.4.37 [INFO] [stderr] Checking zerotrie v0.2.3 [INFO] [stderr] Checking tracing v0.1.44 [INFO] [stderr] Checking tungstenite v0.28.0 [INFO] [stderr] Checking zerovec v0.11.5 [INFO] [stderr] Checking axum-core v0.5.6 [INFO] [stderr] Compiling openraft-macros v0.9.21 [INFO] [stderr] Compiling utoipa-gen v5.4.0 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Checking pin-project v1.1.10 [INFO] [stderr] Checking tracing-futures v0.2.5 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Checking tinystr v0.8.2 [INFO] [stderr] Checking potential_utf v0.1.4 [INFO] [stderr] Checking icu_locale_core v2.1.1 [INFO] [stderr] Checking icu_collections v2.1.1 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling derive_builder_core v0.20.2 [INFO] [stderr] Checking icu_provider v2.1.1 [INFO] [stderr] Compiling validator_derive v0.19.0 [INFO] [stderr] Checking clap v4.5.59 [INFO] [stderr] Checking futures-executor v0.3.32 [INFO] [stderr] Checking futures v0.3.32 [INFO] [stderr] Checking icu_properties v2.1.2 [INFO] [stderr] Checking icu_normalizer v2.1.1 [INFO] [stderr] Checking derive_more v1.0.0 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Compiling derive_builder_macro v0.20.2 [INFO] [stderr] Checking anyerror v0.1.13 [INFO] [stderr] Checking olpc-cjson v0.1.4 [INFO] [stderr] Checking jwt v0.16.0 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Checking assert-json-diff v2.0.2 [INFO] [stderr] Checking derive_builder v0.20.2 [INFO] [stderr] Checking validit v0.2.5 [INFO] [stderr] Checking oci-spec v0.8.4 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking url v2.5.8 [INFO] [stderr] Checking validator v0.19.0 [INFO] [stderr] Checking tokio-util v0.7.18 [INFO] [stderr] Checking async-compression v0.4.40 [INFO] [stderr] Checking cron v0.15.0 [INFO] [stderr] Checking tokio-tungstenite v0.28.0 [INFO] [stderr] Checking openraft v0.9.21 [INFO] [stderr] Checking deadpool v0.12.3 [INFO] [stderr] Checking zlayer-spec v0.9.994 [INFO] [stderr] Checking h2 v0.4.13 [INFO] [stderr] Checking tower v0.5.3 [INFO] [stderr] Checking tower-http v0.6.8 [INFO] [stderr] Checking utoipa v5.4.0 [INFO] [stderr] Checking hyper v1.8.1 [INFO] [stderr] Checking hyper-util v0.1.20 [INFO] [stderr] Checking axum v0.8.8 [INFO] [stderr] Checking wiremock v0.6.5 [INFO] [stderr] Checking rustls-webpki v0.103.9 [INFO] [stderr] Checking tokio-rustls v0.26.4 [INFO] [stderr] Checking rustls-platform-verifier v0.6.2 [INFO] [stderr] Checking hyper-rustls v0.27.7 [INFO] [stderr] Checking reqwest v0.12.28 [INFO] [stderr] Checking reqwest v0.13.2 [INFO] [stderr] Checking oci-client v0.15.0 [INFO] [stderr] Checking zlayer-consensus v0.9.994 [INFO] [stderr] Checking zlayer-core v0.9.994 [INFO] [stderr] Checking zlayer-scheduler v0.9.994 (/opt/rustwide/workdir) [INFO] [stdout] warning: binding's name is too similar to existing binding [INFO] [stdout] --> src/placement.rs:1349:17 [INFO] [stdout] | [INFO] [stdout] 1349 | let mut nodes = vec![node1, node2]; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: existing binding defined here [INFO] [stdout] --> src/placement.rs:1345:17 [INFO] [stdout] | [INFO] [stdout] 1345 | let mut node1 = make_gpu_node(1, "192.168.1.1:8000", 4, "nvidia"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#similar_names [INFO] [stdout] = note: `-W clippy::similar-names` implied by `-W clippy::pedantic` [INFO] [stdout] = help: to override `-W clippy::pedantic` add `#[allow(clippy::similar_names)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: long literal lacking separators [INFO] [stdout] --> src/raft.rs:774:24 [INFO] [stdout] | [INFO] [stdout] 774 | timestamp: 1234567890, [INFO] [stdout] | ^^^^^^^^^^ help: consider: `1_234_567_890` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stdout] = note: `-W clippy::unreadable-literal` implied by `-W clippy::pedantic` [INFO] [stdout] = help: to override `-W clippy::pedantic` add `#[allow(clippy::unreadable_literal)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: long literal lacking separators [INFO] [stdout] --> src/raft.rs:784:46 [INFO] [stdout] | [INFO] [stdout] 784 | assert_eq!(svc.last_scale_time, Some(1234567890)); [INFO] [stdout] | ^^^^^^^^^^ help: consider: `1_234_567_890` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variables can be used directly in the `format!` string [INFO] [stdout] --> src/autoscaler.rs:452:22 [INFO] [stdout] | [INFO] [stdout] 452 | other => panic!("Expected ScaleUp, got {:?}", other), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args [INFO] [stdout] = note: `-W clippy::uninlined-format-args` implied by `-W clippy::pedantic` [INFO] [stdout] = help: to override `-W clippy::pedantic` add `#[allow(clippy::uninlined_format_args)]` [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 452 - other => panic!("Expected ScaleUp, got {:?}", other), [INFO] [stdout] 452 + other => panic!("Expected ScaleUp, got {other:?}"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variables can be used directly in the `format!` string [INFO] [stdout] --> src/autoscaler.rs:511:22 [INFO] [stdout] | [INFO] [stdout] 511 | other => panic!("Expected ScaleUp, got {:?}", other), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 511 - other => panic!("Expected ScaleUp, got {:?}", other), [INFO] [stdout] 511 + other => panic!("Expected ScaleUp, got {other:?}"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variables can be used directly in the `format!` string [INFO] [stdout] --> src/autoscaler.rs:546:22 [INFO] [stdout] | [INFO] [stdout] 546 | other => panic!("Expected ScaleDown, got {:?}", other), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 546 - other => panic!("Expected ScaleDown, got {:?}", other), [INFO] [stdout] 546 + other => panic!("Expected ScaleDown, got {other:?}"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variables can be used directly in the `format!` string [INFO] [stdout] --> src/autoscaler.rs:701:22 [INFO] [stdout] | [INFO] [stdout] 701 | other => panic!("Expected ScaleUp due to RPS, got {:?}", other), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 701 - other => panic!("Expected ScaleUp due to RPS, got {:?}", other), [INFO] [stdout] 701 + other => panic!("Expected ScaleUp due to RPS, got {other:?}"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variables can be used directly in the `format!` string [INFO] [stdout] --> src/autoscaler.rs:738:22 [INFO] [stdout] | [INFO] [stdout] 738 | other => panic!("Expected ScaleUp, got {:?}", other), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 738 - other => panic!("Expected ScaleUp, got {:?}", other), [INFO] [stdout] 738 + other => panic!("Expected ScaleUp, got {other:?}"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variables can be used directly in the `format!` string [INFO] [stdout] --> src/autoscaler.rs:835:9 [INFO] [stdout] | [INFO] [stdout] 835 | println!("Decision after EMA smoothing: {:?}", decision); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 835 - println!("Decision after EMA smoothing: {:?}", decision); [INFO] [stdout] 835 + println!("Decision after EMA smoothing: {decision:?}"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variables can be used directly in the `format!` string [INFO] [stdout] --> src/autoscaler.rs:853:22 [INFO] [stdout] | [INFO] [stdout] 853 | other => panic!("Expected ScaleDown, got {:?}", other), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 853 - other => panic!("Expected ScaleDown, got {:?}", other), [INFO] [stdout] 853 + other => panic!("Expected ScaleDown, got {other:?}"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variables can be used directly in the `format!` string [INFO] [stdout] --> src/metrics.rs:940:32 [INFO] [stdout] | [INFO] [stdout] 940 | .ok_or_else(|| format!("No stats for container: {}", id)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 940 - .ok_or_else(|| format!("No stats for container: {}", id)) [INFO] [stdout] 940 + .ok_or_else(|| format!("No stats for container: {id}")) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: strict comparison of `f32` or `f64` [INFO] [stdout] --> src/metrics.rs:972:9 [INFO] [stdout] | [INFO] [stdout] 972 | assert_eq!(stats.memory_percent(), 0.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stdout] = note: `-W clippy::float-cmp` implied by `-W clippy::pedantic` [INFO] [stdout] = help: to override `-W clippy::pedantic` add `#[allow(clippy::float_cmp)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: strict comparison of `f32` or `f64` [INFO] [stdout] --> src/metrics.rs:1021:9 [INFO] [stdout] | [INFO] [stdout] 1021 | assert_eq!(metrics[0].cpu_percent, 0.0); // First sample has no delta [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casts from `u32` to `u64` can be expressed infallibly using `From` [INFO] [stdout] --> src/metrics.rs:1106:51 [INFO] [stdout] | [INFO] [stdout] 1106 | cpu_usage_usec: 500_000 * (i as u64), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: an `as` cast can become silently lossy if the types change in the future [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stdout] = note: `-W clippy::cast-lossless` implied by `-W clippy::pedantic` [INFO] [stdout] = help: to override `-W clippy::pedantic` add `#[allow(clippy::cast_lossless)]` [INFO] [stdout] help: use `u64::from` instead [INFO] [stdout] | [INFO] [stdout] 1106 - cpu_usage_usec: 500_000 * (i as u64), [INFO] [stdout] 1106 + cpu_usage_usec: 500_000 * u64::from(i), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casts from `u32` to `u64` can be expressed infallibly using `From` [INFO] [stdout] --> src/metrics.rs:1107:58 [INFO] [stdout] | [INFO] [stdout] 1107 | memory_bytes: 50 * 1024 * 1024 * (i as u64), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: an `as` cast can become silently lossy if the types change in the future [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stdout] help: use `u64::from` instead [INFO] [stdout] | [INFO] [stdout] 1107 - memory_bytes: 50 * 1024 * 1024 * (i as u64), [INFO] [stdout] 1107 + memory_bytes: 50 * 1024 * 1024 * u64::from(i), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: strict comparison of `f32` or `f64` [INFO] [stdout] --> src/metrics.rs:1214:9 [INFO] [stdout] | [INFO] [stdout] 1214 | assert_eq!(metrics[0].cpu_percent, 0.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calling `ResourcesSpec::default()` is more clear than this expression [INFO] [stdout] --> src/placement.rs:758:24 [INFO] [stdout] | [INFO] [stdout] 758 | resources: Default::default(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: try: `ResourcesSpec::default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#default_trait_access [INFO] [stdout] = note: `-W clippy::default-trait-access` implied by `-W clippy::pedantic` [INFO] [stdout] = help: to override `-W clippy::pedantic` add `#[allow(clippy::default_trait_access)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calling `HashMap::default()` is more clear than this expression [INFO] [stdout] --> src/placement.rs:759:18 [INFO] [stdout] | [INFO] [stdout] 759 | env: Default::default(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: try: `HashMap::default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#default_trait_access [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calling `CommandSpec::default()` is more clear than this expression [INFO] [stdout] --> src/placement.rs:760:22 [INFO] [stdout] | [INFO] [stdout] 760 | command: Default::default(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: try: `CommandSpec::default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#default_trait_access [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calling `NetworkSpec::default()` is more clear than this expression [INFO] [stdout] --> src/placement.rs:761:22 [INFO] [stdout] | [INFO] [stdout] 761 | network: Default::default(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: try: `NetworkSpec::default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#default_trait_access [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calling `ScaleSpec::default()` is more clear than this expression [INFO] [stdout] --> src/placement.rs:763:20 [INFO] [stdout] | [INFO] [stdout] 763 | scale: Default::default(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: try: `ScaleSpec::default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#default_trait_access [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calling `InitSpec::default()` is more clear than this expression [INFO] [stdout] --> src/placement.rs:772:19 [INFO] [stdout] | [INFO] [stdout] 772 | init: Default::default(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: try: `InitSpec::default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#default_trait_access [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calling `ErrorsSpec::default()` is more clear than this expression [INFO] [stdout] --> src/placement.rs:773:21 [INFO] [stdout] | [INFO] [stdout] 773 | errors: Default::default(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: try: `ErrorsSpec::default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#default_trait_access [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calling `ServiceType::default()` is more clear than this expression [INFO] [stdout] --> src/placement.rs:780:27 [INFO] [stdout] | [INFO] [stdout] 780 | service_type: Default::default(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: try: `ServiceType::default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#default_trait_access [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variables can be used directly in the `format!` string [INFO] [stdout] --> src/placement.rs:789:9 [INFO] [stdout] | [INFO] [stdout] 789 | assert_eq!(format!("{}", id), "api-2"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 789 - assert_eq!(format!("{}", id), "api-2"); [INFO] [stdout] 789 + assert_eq!(format!("{id}"), "api-2"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: strict comparison of `f32` or `f64` [INFO] [stdout] --> src/placement.rs:795:9 [INFO] [stdout] | [INFO] [stdout] 795 | assert_eq!(res.utilization(), 0.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: strict comparison of `f32` or `f64` [INFO] [stdout] --> src/placement.rs:799:9 [INFO] [stdout] | [INFO] [stdout] 799 | assert_eq!(res.cpu_utilization(), 50.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: strict comparison of `f32` or `f64` [INFO] [stdout] --> src/placement.rs:800:9 [INFO] [stdout] | [INFO] [stdout] 800 | assert_eq!(res.memory_utilization(), 50.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: strict comparison of `f32` or `f64` [INFO] [stdout] --> src/placement.rs:801:9 [INFO] [stdout] | [INFO] [stdout] 801 | assert_eq!(res.utilization(), 50.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> src/placement.rs:1006:38 [INFO] [stdout] | [INFO] [stdout] 1006 | assert!(decisions.iter().all(|d| d.is_success())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: replace the closure with the method itself: `super::PlacementDecision::is_success` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure_for_method_calls [INFO] [stdout] = note: `-W clippy::redundant-closure-for-method-calls` implied by `-W clippy::pedantic` [INFO] [stdout] = help: to override `-W clippy::pedantic` add `#[allow(clippy::redundant_closure_for_method_calls)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> src/placement.rs:1022:38 [INFO] [stdout] | [INFO] [stdout] 1022 | assert!(decisions.iter().all(|d| d.is_success())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: replace the closure with the method itself: `super::PlacementDecision::is_success` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure_for_method_calls [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> src/placement.rs:1066:38 [INFO] [stdout] | [INFO] [stdout] 1066 | assert!(decisions.iter().all(|d| d.is_success())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: replace the closure with the method itself: `super::PlacementDecision::is_success` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure_for_method_calls [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> src/placement.rs:1095:38 [INFO] [stdout] | [INFO] [stdout] 1095 | assert!(decisions.iter().all(|d| d.is_success())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: replace the closure with the method itself: `super::PlacementDecision::is_success` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure_for_method_calls [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casts from `u32` to `u64` can be expressed infallibly using `From` [INFO] [stdout] --> src/placement.rs:1169:35 [INFO] [stdout] | [INFO] [stdout] 1169 | resources.gpu_memory_mb = gpu_total as u64 * 16384; // 16GB per GPU [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: an `as` cast can become silently lossy if the types change in the future [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stdout] help: use `u64::from` instead [INFO] [stdout] | [INFO] [stdout] 1169 - resources.gpu_memory_mb = gpu_total as u64 * 16384; // 16GB per GPU [INFO] [stdout] 1169 + resources.gpu_memory_mb = u64::from(gpu_total) * 16384; // 16GB per GPU [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: strict comparison of `f32` or `f64` [INFO] [stdout] --> src/raft.rs:807:9 [INFO] [stdout] | [INFO] [stdout] 807 | assert_eq!(node.cpu_total, 8.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: item in documentation is missing backticks [INFO] [stdout] --> tests/integration.rs:1:31 [INFO] [stdout] | [INFO] [stdout] 1 | //! Integration tests for the ZLayer scheduler [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_markdown [INFO] [stdout] = note: `-W clippy::doc-markdown` implied by `-W clippy::pedantic` [INFO] [stdout] = help: to override `-W clippy::pedantic` add `#[allow(clippy::doc_markdown)]` [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 1 - //! Integration tests for the ZLayer scheduler [INFO] [stdout] 1 + //! Integration tests for the `ZLayer` scheduler [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variables can be used directly in the `format!` string [INFO] [stdout] --> tests/integration.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 73 | / assert!( [INFO] [stdout] 74 | | matches!(decision, ScalingDecision::NoChange { .. }), [INFO] [stdout] 75 | | "Expected NoChange at 50% CPU, got {:?}", [INFO] [stdout] 76 | | decision [INFO] [stdout] 77 | | ); [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args [INFO] [stdout] = note: `-W clippy::uninlined-format-args` implied by `-W clippy::pedantic` [INFO] [stdout] = help: to override `-W clippy::pedantic` add `#[allow(clippy::uninlined_format_args)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variables can be used directly in the `format!` string [INFO] [stdout] --> tests/integration.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 113 | / assert!( [INFO] [stdout] 114 | | matches!(decision, ScalingDecision::ScaleUp { .. }), [INFO] [stdout] 115 | | "Expected ScaleUp at 85% CPU, got {:?}", [INFO] [stdout] 116 | | decision [INFO] [stdout] 117 | | ); [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variables can be used directly in the `format!` string [INFO] [stdout] --> tests/integration.rs:173:9 [INFO] [stdout] | [INFO] [stdout] 173 | / assert!( [INFO] [stdout] 174 | | !decision.is_change(), [INFO] [stdout] 175 | | "Service {} should not scale at 50% CPU", [INFO] [stdout] 176 | | svc [INFO] [stdout] 177 | | ); [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variables can be used directly in the `format!` string [INFO] [stdout] --> tests/integration.rs:210:18 [INFO] [stdout] | [INFO] [stdout] 210 | other => panic!("Expected ScaleUp to 5, got {:?}", other), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 210 - other => panic!("Expected ScaleUp to 5, got {:?}", other), [INFO] [stdout] 210 + other => panic!("Expected ScaleUp to 5, got {other:?}"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: item in documentation is missing backticks [INFO] [stdout] --> tests/integration.rs:247:10 [INFO] [stdout] | [INFO] [stdout] 247 | /// Test apply_scaling records state correctly [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_markdown [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 247 - /// Test apply_scaling records state correctly [INFO] [stdout] 247 + /// Test `apply_scaling` records state correctly [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> tests/integration.rs:370:51 [INFO] [stdout] | [INFO] [stdout] 370 | let metric_names: Vec<_> = metrics.iter().map(|m| m.get_name()).collect(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: replace the closure with the method itself: `prometheus::proto::MetricFamily::get_name` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure_for_method_calls [INFO] [stdout] = note: `-W clippy::redundant-closure-for-method-calls` implied by `-W clippy::pedantic` [INFO] [stdout] = help: to override `-W clippy::pedantic` add `#[allow(clippy::redundant_closure_for_method_calls)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variables can be used directly in the `format!` string [INFO] [stdout] --> tests/integration.rs:371:5 [INFO] [stdout] | [INFO] [stdout] 371 | println!("Registered metrics: {:?}", metric_names); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 371 - println!("Registered metrics: {:?}", metric_names); [INFO] [stdout] 371 + println!("Registered metrics: {metric_names:?}"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variables can be used directly in the `format!` string [INFO] [stdout] --> tests/integration.rs:398:13 [INFO] [stdout] | [INFO] [stdout] 398 | println!("Raft initialization skipped: {}", e); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 398 - println!("Raft initialization skipped: {}", e); [INFO] [stdout] 398 + println!("Raft initialization skipped: {e}"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variables can be used directly in the `format!` string [INFO] [stdout] --> tests/integration.rs:407:5 [INFO] [stdout] | [INFO] [stdout] 407 | println!("Is leader: {}", is_leader); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 407 - println!("Is leader: {}", is_leader); [INFO] [stdout] 407 + println!("Is leader: {is_leader}"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variables can be used directly in the `format!` string [INFO] [stdout] --> tests/integration.rs:509:5 [INFO] [stdout] | [INFO] [stdout] 509 | / assert!( [INFO] [stdout] 510 | | matches!(decision, ScalingDecision::ScaleDown { .. }), [INFO] [stdout] 511 | | "Expected ScaleDown at 20% CPU (below 35% threshold), got {:?}", [INFO] [stdout] 512 | | decision [INFO] [stdout] 513 | | ); [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variables can be used directly in the `format!` string [INFO] [stdout] --> tests/integration.rs:561:5 [INFO] [stdout] | [INFO] [stdout] 561 | / assert!( [INFO] [stdout] 562 | | matches!(decision, ScalingDecision::NoChange { .. }), [INFO] [stdout] 563 | | "Expected NoChange when at max, got {:?}", [INFO] [stdout] 564 | | decision [INFO] [stdout] 565 | | ); [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variables can be used directly in the `format!` string [INFO] [stdout] --> tests/integration.rs:613:5 [INFO] [stdout] | [INFO] [stdout] 613 | / assert!( [INFO] [stdout] 614 | | matches!(decision, ScalingDecision::ScaleUp { .. }), [INFO] [stdout] 615 | | "Expected ScaleUp at 80% memory, got {:?}", [INFO] [stdout] 616 | | decision [INFO] [stdout] 617 | | ); [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variables can be used directly in the `format!` string [INFO] [stdout] --> src/lib.rs:1017:22 [INFO] [stdout] | [INFO] [stdout] 1017 | other => panic!("Expected ScaleUp, got {:?}", other), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 1017 - other => panic!("Expected ScaleUp, got {:?}", other), [INFO] [stdout] 1017 + other => panic!("Expected ScaleUp, got {other:?}"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variables can be used directly in the `format!` string [INFO] [stdout] --> src/lib.rs:1034:9 [INFO] [stdout] | [INFO] [stdout] 1034 | / assert!( [INFO] [stdout] 1035 | | matches!(err, SchedulerError::NotLeader), [INFO] [stdout] 1036 | | "Expected NotLeader, got: {:?}", [INFO] [stdout] 1037 | | err [INFO] [stdout] 1038 | | ); [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 47s [INFO] running `Command { std: "docker" "inspect" "5a06089a17a79dcdabaed3d2d3775d090e36cac919c765dd74d86472dd06b481", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5a06089a17a79dcdabaed3d2d3775d090e36cac919c765dd74d86472dd06b481", kill_on_drop: false }` [INFO] [stdout] 5a06089a17a79dcdabaed3d2d3775d090e36cac919c765dd74d86472dd06b481