feat(staking): implement unstaking CLI method #5675
clippy
8 errors
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 8 |
Warning | 0 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.79.0 (129f3b996 2024-06-10)
- cargo 1.79.0 (ffa9cf99a 2024-06-03)
- clippy 0.1.79 (129f3b9 2024-06-10)
Annotations
Check failure on line 330 in data_structures/src/utxo_pool.rs
github-actions / clippy
bound is defined in more than one place
error: bound is defined in more than one place
--> data_structures/src/utxo_pool.rs:330:25
|
330 | pub fn contains_key<Q: ?Sized>(&self, k: &Q) -> bool
| ^
...
333 | Q: std::hash::Hash + Eq,
| ^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations
Check failure on line 322 in data_structures/src/utxo_pool.rs
github-actions / clippy
bound is defined in more than one place
error: bound is defined in more than one place
--> data_structures/src/utxo_pool.rs:322:20
|
322 | pub fn get_mut<Q: ?Sized>(&mut self, k: &Q) -> Option<&mut u64>
| ^
...
325 | Q: std::hash::Hash + Eq,
| ^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations
Check failure on line 314 in data_structures/src/utxo_pool.rs
github-actions / clippy
bound is defined in more than one place
error: bound is defined in more than one place
--> data_structures/src/utxo_pool.rs:314:16
|
314 | pub fn get<Q: ?Sized>(&self, k: &Q) -> Option<&u64>
| ^
...
317 | Q: std::hash::Hash + Eq,
| ^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations
= note: `-D clippy::multiple-bound-locations` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::multiple_bound_locations)]`
Check failure on line 330 in data_structures/src/utxo_pool.rs
github-actions / clippy
bound is defined in more than one place
error: bound is defined in more than one place
--> data_structures/src/utxo_pool.rs:330:25
|
330 | pub fn contains_key<Q: ?Sized>(&self, k: &Q) -> bool
| ^
...
333 | Q: std::hash::Hash + Eq,
| ^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations
Check failure on line 322 in data_structures/src/utxo_pool.rs
github-actions / clippy
bound is defined in more than one place
error: bound is defined in more than one place
--> data_structures/src/utxo_pool.rs:322:20
|
322 | pub fn get_mut<Q: ?Sized>(&mut self, k: &Q) -> Option<&mut u64>
| ^
...
325 | Q: std::hash::Hash + Eq,
| ^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations
Check failure on line 314 in data_structures/src/utxo_pool.rs
github-actions / clippy
bound is defined in more than one place
error: bound is defined in more than one place
--> data_structures/src/utxo_pool.rs:314:16
|
314 | pub fn get<Q: ?Sized>(&self, k: &Q) -> Option<&u64>
| ^
...
317 | Q: std::hash::Hash + Eq,
| ^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations
= note: `-D clippy::multiple-bound-locations` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::multiple_bound_locations)]`
Check failure on line 429 in data_structures/src/staking/stakes.rs
github-actions / clippy
cannot find type `StakingResult` in this scope
error[E0412]: cannot find type `StakingResult` in this scope
--> data_structures/src/staking/stakes.rs:429:6
|
429 | ) -> StakingResult<(), PublicKeyHash, Wit, Epoch>
| ^^^^^^^^^^^^^ help: a type alias with a similar name exists: `StakesResult`
|
::: data_structures/src/staking/helpers.rs:15:1
|
15 | pub type StakesResult<T, Address, Coins, Epoch> = Result<T, StakesError<Address, Coins, Epoch>>;
| ------------------------------------------------------------------------------------------------ similarly named type alias `StakesResult` defined here
Check failure on line 429 in data_structures/src/staking/stakes.rs
github-actions / clippy
cannot find type `StakingResult` in this scope
error[E0412]: cannot find type `StakingResult` in this scope
--> data_structures/src/staking/stakes.rs:429:6
|
429 | ) -> StakingResult<(), PublicKeyHash, Wit, Epoch>
| ^^^^^^^^^^^^^ help: a type alias with a similar name exists: `StakesResult`
|
::: data_structures/src/staking/helpers.rs:15:1
|
15 | pub type StakesResult<T, Address, Coins, Epoch> = Result<T, StakesError<Address, Coins, Epoch>>;
| ------------------------------------------------------------------------------------------------ similarly named type alias `StakesResult` defined here