Skip to content

feat: generate spec file for mainnet #892

feat: generate spec file for mainnet

feat: generate spec file for mainnet #892

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 43 in /home/runner/.cargo/git/checkouts/polkadot-sdk-5b7570aef63aaea8/32d4e64/substrate/client/rpc-servers/src/middleware/rate_limit.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

mismatched types

error[E0308]: mismatched types
  --> /home/runner/.cargo/git/checkouts/polkadot-sdk-5b7570aef63aaea8/32d4e64/substrate/client/rpc-servers/src/middleware/rate_limit.rs:43:76
   |
43 |             inner: Arc::new(RateLimitInner::direct_with_clock(Quota::per_minute(n), clock.clone())),
   |                             ---------------------------------                       ^^^^^^^^^^^^^ expected `&QuantaClock`, found `QuantaClock`
   |                             |
   |                             arguments to this function are incorrect
   |
note: associated function defined here
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/governor-0.6.3/src/state/direct.rs:58:12
   |
58 |     pub fn direct_with_clock(quota: Quota, clock: &C) -> Self {
   |            ^^^^^^^^^^^^^^^^^
help: consider borrowing here
   |
43 |             inner: Arc::new(RateLimitInner::direct_with_clock(Quota::per_minute(n), &clock.clone())),
   |                                                                                     +