Skip to content
GitHub Actions / clippy failed Dec 3, 2024 in 0s

clippy

1 error

Details

Results

Message level Amount
Internal compiler error 0
Error 1
Warning 0
Note 0
Help 0

Versions

  • rustc 1.84.0-nightly (662180b34 2024-10-20)
  • cargo 1.84.0-nightly (cf53cc54b 2024-10-18)
  • clippy 0.1.84 (662180b34d 2024-10-20)

Annotations

Check failure on line 98 in xtask/src/mainnet_spec.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

expected a type, found a trait

error[E0782]: expected a type, found a trait
  --> xtask/src/mainnet_spec.rs:98:9
   |
98 |         sc_service::ChainSpec::from_json_bytes(include_bytes!("../../node/chain-specs/main.json"))
   |         ^^^^^^^^^^^^^^^^^^^^^
   |
help: you can add the `dyn` keyword if you want a trait object
   |
98 |         <dyn sc_service::ChainSpec>::from_json_bytes(include_bytes!("../../node/chain-specs/main.json"))
   |         ++++                      +