Performance optimizations #3378
Closed
Garnix CI / check clippy [x86_64-linux]
failed
Dec 14, 2024 in 4m 48s
Run results
Build failed
Details
Last 100 lines of logs:
Checking h2 v0.4.6
Checking h2 v0.3.25
Checking tokio-postgres v0.7.10
Checking unicode-truncate v1.1.0
Checking axum-core v0.4.3
Checking erased-serde v0.4.4
Checking jsonrpsee-core v0.24.3
Checking parity-scale-codec v2.3.1
Checking pgp v0.13.2
Checking color-eyre v0.6.3
Checking ratatui v0.27.0
Checking serde-untagged v0.1.5
Checking criterion-plot v0.5.0
Checking aptos-logger v0.1.0 (https://github.com/unionlabs/aptos-core#fe799078)
Checking camino v1.1.6
Checking cargo-platform v0.1.8
Checking impl-codec v0.5.1
Compiling pbjson-types v0.6.0 (https://github.com/recoord/pbjson?rev=2b7a8e4c2c83a40d04beed46aa26ab97a39a81fe#2b7a8e4c)
Checking primitive-types v0.10.1
Checking serde-value v0.7.0
Checking backon v0.4.4
Checking criterion v0.5.1
Compiling alloy-sol-macro v0.8.12
Checking cargo_metadata v0.18.1
Checking figment v0.10.15
Checking cargo-util-schemas v0.1.0
Checking tracing-test v0.2.4
Checking serde-aux v4.5.0
Checking tracing-futures v0.2.5
Checking bip39 v2.0.0
Checking devnet-compose v0.1.0 (/build/source/devnet-compose)
Checking cw-storage-plus v1.2.0
Checking cw-storage-plus v0.16.0
Checking cw-address-like v1.0.4
warning: unused imports: `LogConfiguration` and `ShutdownConfig`
--> devnet-compose/src/main.rs:7:5
|
7 | LogConfiguration, Probe, Process, ProcessDependency, Project, ShutdownConfig,
| ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
Checking alloy-sol-types v0.8.12
Compiling async-graphql-derive v7.0.7
Checking sqlx-core v0.7.4
Checking cw-cii v0.1.0 (https://github.com/hussein-aitlahcen/cw-ics721?rev=dd5b7add6fdc81e633084031f8512e5e909dd42a#dd5b7add)
error[E0015]: cannot call non-const fn `console::Style::new` in statics
--> devnet-compose/src/theme.rs:19:36
|
19 | static CYAN_STYLE: Style = Style::new().cyan();
| ^^^^^^^^^^^^
|
= note: calls in statics are limited to constant functions, tuple structs and tuple variants
= note: consider wrapping this expression in `std::sync::LazyLock::new(|| ...)`
error[E0015]: cannot call non-const fn `console::Style::cyan` in statics
--> devnet-compose/src/theme.rs:19:49
|
19 | static CYAN_STYLE: Style = Style::new().cyan();
| ^^^^^^
|
= note: calls in statics are limited to constant functions, tuple structs and tuple variants
= note: consider wrapping this expression in `std::sync::LazyLock::new(|| ...)`
error[E0308]: mismatched types
--> devnet-compose/src/galois.rs:42:39
|
42 | let readiness_probe = Probe::exec(format!("nix run .#galoisd -- query-stats {GALIOSD_PORT}"));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&str`, found `String`
|
= note: this error originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0433]: failed to resolve: use of undeclared type `ProcessBuilder`
--> devnet-compose/src/main.rs:36:9
|
36 | ProcessBuilder::new(
| ^^^^^^^^^^^^^^ use of undeclared type `ProcessBuilder`
error[E0433]: failed to resolve: use of undeclared type `ProcessBuilder`
--> devnet-compose/src/main.rs:97:5
|
97 | ProcessBuilder::new(
| ^^^^^^^^^^^^^^ use of undeclared type `ProcessBuilder`
error[E0507]: cannot move out of static item `CYAN_STYLE`
--> devnet-compose/src/theme.rs:20:9
|
20 | CYAN_STYLE
| ^^^^^^^^^^ move occurs because `CYAN_STYLE` has type `console::Style`, which does not implement the `Copy` trait
|
help: consider cloning the value if the performance cost is acceptable
|
20 | CYAN_STYLE.clone()
| ++++++++
Some errors have detailed explanations: E0015, E0308, E0433, E0507.
For more information about an error, try `rustc --explain E0015`.
warning: `devnet-compose` (bin "devnet-compose" test) generated 1 warning
error: could not compile `devnet-compose` (bin "devnet-compose" test) due to 6 previous errors; 1 warning emitted
warning: build failed, waiting for other jobs to finish...
Loading