chore(cargo): format the entire codebase #5676
Annotations
33 errors and 9 warnings
this method takes 1 argument but 0 arguments were supplied:
data_structures/src/data_request.rs#L1424
error[E0061]: this method takes 1 argument but 0 arguments were supplied
--> data_structures/src/data_request.rs:1424:19
|
1424 | assert!(p.update_data_request_stages().is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^-- an argument of type `usize` is missing
|
note: method defined here
--> data_structures/src/data_request.rs:245:12
|
245 | pub fn update_data_request_stages(&mut self, validator_count: usize) -> Vec<RevealTransaction> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ ----------------------
help: provide the argument
|
1424 | assert!(p.update_data_request_stages(/* usize */).is_empty());
| ~~~~~~~~~~~~~
|
this method takes 1 argument but 0 arguments were supplied:
data_structures/src/data_request.rs#L1398
error[E0061]: this method takes 1 argument but 0 arguments were supplied
--> data_structures/src/data_request.rs:1398:19
|
1398 | assert!(p.update_data_request_stages().is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^-- an argument of type `usize` is missing
|
note: method defined here
--> data_structures/src/data_request.rs:245:12
|
245 | pub fn update_data_request_stages(&mut self, validator_count: usize) -> Vec<RevealTransaction> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ ----------------------
help: provide the argument
|
1398 | assert!(p.update_data_request_stages(/* usize */).is_empty());
| ~~~~~~~~~~~~~
|
this method takes 1 argument but 0 arguments were supplied:
data_structures/src/data_request.rs#L1385
error[E0061]: this method takes 1 argument but 0 arguments were supplied
--> data_structures/src/data_request.rs:1385:19
|
1385 | assert!(p.update_data_request_stages().is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^-- an argument of type `usize` is missing
|
note: method defined here
--> data_structures/src/data_request.rs:245:12
|
245 | pub fn update_data_request_stages(&mut self, validator_count: usize) -> Vec<RevealTransaction> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ ----------------------
help: provide the argument
|
1385 | assert!(p.update_data_request_stages(/* usize */).is_empty());
| ~~~~~~~~~~~~~
|
this method takes 1 argument but 0 arguments were supplied:
data_structures/src/data_request.rs#L1373
error[E0061]: this method takes 1 argument but 0 arguments were supplied
--> data_structures/src/data_request.rs:1373:19
|
1373 | assert!(p.update_data_request_stages().is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^-- an argument of type `usize` is missing
|
note: method defined here
--> data_structures/src/data_request.rs:245:12
|
245 | pub fn update_data_request_stages(&mut self, validator_count: usize) -> Vec<RevealTransaction> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ ----------------------
help: provide the argument
|
1373 | assert!(p.update_data_request_stages(/* usize */).is_empty());
| ~~~~~~~~~~~~~
|
this method takes 1 argument but 0 arguments were supplied:
data_structures/src/data_request.rs#L1346
error[E0061]: this method takes 1 argument but 0 arguments were supplied
--> data_structures/src/data_request.rs:1346:19
|
1346 | assert!(p.update_data_request_stages().is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^-- an argument of type `usize` is missing
|
note: method defined here
--> data_structures/src/data_request.rs:245:12
|
245 | pub fn update_data_request_stages(&mut self, validator_count: usize) -> Vec<RevealTransaction> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ ----------------------
help: provide the argument
|
1346 | assert!(p.update_data_request_stages(/* usize */).is_empty());
| ~~~~~~~~~~~~~
|
this method takes 1 argument but 0 arguments were supplied:
data_structures/src/data_request.rs#L1305
error[E0061]: this method takes 1 argument but 0 arguments were supplied
--> data_structures/src/data_request.rs:1305:28
|
1305 | let my_reveals = p.update_data_request_stages();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^-- an argument of type `usize` is missing
|
note: method defined here
--> data_structures/src/data_request.rs:245:12
|
245 | pub fn update_data_request_stages(&mut self, validator_count: usize) -> Vec<RevealTransaction> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ ----------------------
help: provide the argument
|
1305 | let my_reveals = p.update_data_request_stages(/* usize */);
| ~~~~~~~~~~~~~
|
this method takes 1 argument but 0 arguments were supplied:
data_structures/src/data_request.rs#L1249
error[E0061]: this method takes 1 argument but 0 arguments were supplied
--> data_structures/src/data_request.rs:1249:19
|
1249 | assert!(p.update_data_request_stages().is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^-- an argument of type `usize` is missing
|
note: method defined here
--> data_structures/src/data_request.rs:245:12
|
245 | pub fn update_data_request_stages(&mut self, validator_count: usize) -> Vec<RevealTransaction> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ ----------------------
help: provide the argument
|
1249 | assert!(p.update_data_request_stages(/* usize */).is_empty());
| ~~~~~~~~~~~~~
|
this method takes 1 argument but 0 arguments were supplied:
data_structures/src/data_request.rs#L1237
error[E0061]: this method takes 1 argument but 0 arguments were supplied
--> data_structures/src/data_request.rs:1237:19
|
1237 | assert!(p.update_data_request_stages().is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^-- an argument of type `usize` is missing
|
note: method defined here
--> data_structures/src/data_request.rs:245:12
|
245 | pub fn update_data_request_stages(&mut self, validator_count: usize) -> Vec<RevealTransaction> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ ----------------------
help: provide the argument
|
1237 | assert!(p.update_data_request_stages(/* usize */).is_empty());
| ~~~~~~~~~~~~~
|
this method takes 1 argument but 0 arguments were supplied:
data_structures/src/data_request.rs#L1225
error[E0061]: this method takes 1 argument but 0 arguments were supplied
--> data_structures/src/data_request.rs:1225:19
|
1225 | assert!(p.update_data_request_stages().is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^-- an argument of type `usize` is missing
|
note: method defined here
--> data_structures/src/data_request.rs:245:12
|
245 | pub fn update_data_request_stages(&mut self, validator_count: usize) -> Vec<RevealTransaction> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ ----------------------
help: provide the argument
|
1225 | assert!(p.update_data_request_stages(/* usize */).is_empty());
| ~~~~~~~~~~~~~
|
this method takes 1 argument but 0 arguments were supplied:
data_structures/src/data_request.rs#L1213
error[E0061]: this method takes 1 argument but 0 arguments were supplied
--> data_structures/src/data_request.rs:1213:19
|
1213 | assert!(p.update_data_request_stages().is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^-- an argument of type `usize` is missing
|
note: method defined here
--> data_structures/src/data_request.rs:245:12
|
245 | pub fn update_data_request_stages(&mut self, validator_count: usize) -> Vec<RevealTransaction> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ ----------------------
help: provide the argument
|
1213 | assert!(p.update_data_request_stages(/* usize */).is_empty());
| ~~~~~~~~~~~~~
|
this method takes 1 argument but 0 arguments were supplied:
data_structures/src/data_request.rs#L1170
error[E0061]: this method takes 1 argument but 0 arguments were supplied
--> data_structures/src/data_request.rs:1170:19
|
1170 | assert!(p.update_data_request_stages().is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^-- an argument of type `usize` is missing
|
note: method defined here
--> data_structures/src/data_request.rs:245:12
|
245 | pub fn update_data_request_stages(&mut self, validator_count: usize) -> Vec<RevealTransaction> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ ----------------------
help: provide the argument
|
1170 | assert!(p.update_data_request_stages(/* usize */).is_empty());
| ~~~~~~~~~~~~~
|
this method takes 1 argument but 0 arguments were supplied:
data_structures/src/data_request.rs#L1148
error[E0061]: this method takes 1 argument but 0 arguments were supplied
--> data_structures/src/data_request.rs:1148:19
|
1148 | assert!(p.update_data_request_stages().is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^-- an argument of type `usize` is missing
|
note: method defined here
--> data_structures/src/data_request.rs:245:12
|
245 | pub fn update_data_request_stages(&mut self, validator_count: usize) -> Vec<RevealTransaction> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ ----------------------
help: provide the argument
|
1148 | assert!(p.update_data_request_stages(/* usize */).is_empty());
| ~~~~~~~~~~~~~
|
this method takes 1 argument but 0 arguments were supplied:
data_structures/src/data_request.rs#L1127
error[E0061]: this method takes 1 argument but 0 arguments were supplied
--> data_structures/src/data_request.rs:1127:19
|
1127 | assert!(p.update_data_request_stages().is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^-- an argument of type `usize` is missing
|
note: method defined here
--> data_structures/src/data_request.rs:245:12
|
245 | pub fn update_data_request_stages(&mut self, validator_count: usize) -> Vec<RevealTransaction> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ ----------------------
help: provide the argument
|
1127 | assert!(p.update_data_request_stages(/* usize */).is_empty());
| ~~~~~~~~~~~~~
|
this method takes 1 argument but 0 arguments were supplied:
data_structures/src/data_request.rs#L1081
error[E0061]: this method takes 1 argument but 0 arguments were supplied
--> data_structures/src/data_request.rs:1081:19
|
1081 | assert!(p.update_data_request_stages().is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^-- an argument of type `usize` is missing
|
note: method defined here
--> data_structures/src/data_request.rs:245:12
|
245 | pub fn update_data_request_stages(&mut self, validator_count: usize) -> Vec<RevealTransaction> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ ----------------------
help: provide the argument
|
1081 | assert!(p.update_data_request_stages(/* usize */).is_empty());
| ~~~~~~~~~~~~~
|
this method takes 1 argument but 0 arguments were supplied:
data_structures/src/data_request.rs#L1069
error[E0061]: this method takes 1 argument but 0 arguments were supplied
--> data_structures/src/data_request.rs:1069:19
|
1069 | assert!(p.update_data_request_stages().is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^-- an argument of type `usize` is missing
|
note: method defined here
--> data_structures/src/data_request.rs:245:12
|
245 | pub fn update_data_request_stages(&mut self, validator_count: usize) -> Vec<RevealTransaction> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ ----------------------
help: provide the argument
|
1069 | assert!(p.update_data_request_stages(/* usize */).is_empty());
| ~~~~~~~~~~~~~
|
this method takes 1 argument but 0 arguments were supplied:
data_structures/src/data_request.rs#L1057
error[E0061]: this method takes 1 argument but 0 arguments were supplied
--> data_structures/src/data_request.rs:1057:19
|
1057 | assert!(p.update_data_request_stages().is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^-- an argument of type `usize` is missing
|
note: method defined here
--> data_structures/src/data_request.rs:245:12
|
245 | pub fn update_data_request_stages(&mut self, validator_count: usize) -> Vec<RevealTransaction> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ ----------------------
help: provide the argument
|
1057 | assert!(p.update_data_request_stages(/* usize */).is_empty());
| ~~~~~~~~~~~~~
|
this method takes 1 argument but 0 arguments were supplied:
data_structures/src/data_request.rs#L1036
error[E0061]: this method takes 1 argument but 0 arguments were supplied
--> data_structures/src/data_request.rs:1036:19
|
1036 | assert!(p.update_data_request_stages().is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^-- an argument of type `usize` is missing
|
note: method defined here
--> data_structures/src/data_request.rs:245:12
|
245 | pub fn update_data_request_stages(&mut self, validator_count: usize) -> Vec<RevealTransaction> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ ----------------------
help: provide the argument
|
1036 | assert!(p.update_data_request_stages(/* usize */).is_empty());
| ~~~~~~~~~~~~~
|
this method takes 1 argument but 0 arguments were supplied:
data_structures/src/data_request.rs#L966
error[E0061]: this method takes 1 argument but 0 arguments were supplied
--> data_structures/src/data_request.rs:966:19
|
966 | assert!(p.update_data_request_stages().is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^-- an argument of type `usize` is missing
|
note: method defined here
--> data_structures/src/data_request.rs:245:12
|
245 | pub fn update_data_request_stages(&mut self, validator_count: usize) -> Vec<RevealTransaction> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ ----------------------
help: provide the argument
|
966 | assert!(p.update_data_request_stages(/* usize */).is_empty());
| ~~~~~~~~~~~~~
|
this method takes 1 argument but 0 arguments were supplied:
data_structures/src/data_request.rs#L941
error[E0061]: this method takes 1 argument but 0 arguments were supplied
--> data_structures/src/data_request.rs:941:19
|
941 | assert!(p.update_data_request_stages().is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^-- an argument of type `usize` is missing
|
note: method defined here
--> data_structures/src/data_request.rs:245:12
|
245 | pub fn update_data_request_stages(&mut self, validator_count: usize) -> Vec<RevealTransaction> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ ----------------------
help: provide the argument
|
941 | assert!(p.update_data_request_stages(/* usize */).is_empty());
| ~~~~~~~~~~~~~
|
this method takes 1 argument but 0 arguments were supplied:
data_structures/src/data_request.rs#L894
error[E0061]: this method takes 1 argument but 0 arguments were supplied
--> data_structures/src/data_request.rs:894:19
|
894 | assert!(p.update_data_request_stages().is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^-- an argument of type `usize` is missing
|
note: method defined here
--> data_structures/src/data_request.rs:245:12
|
245 | pub fn update_data_request_stages(&mut self, validator_count: usize) -> Vec<RevealTransaction> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ ----------------------
help: provide the argument
|
894 | assert!(p.update_data_request_stages(/* usize */).is_empty());
| ~~~~~~~~~~~~~
|
this method takes 1 argument but 0 arguments were supplied:
data_structures/src/data_request.rs#L852
error[E0061]: this method takes 1 argument but 0 arguments were supplied
--> data_structures/src/data_request.rs:852:19
|
852 | assert!(p.update_data_request_stages().is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^-- an argument of type `usize` is missing
|
note: method defined here
--> data_structures/src/data_request.rs:245:12
|
245 | pub fn update_data_request_stages(&mut self, validator_count: usize) -> Vec<RevealTransaction> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ ----------------------
help: provide the argument
|
852 | assert!(p.update_data_request_stages(/* usize */).is_empty());
| ~~~~~~~~~~~~~
|
this method takes 1 argument but 0 arguments were supplied:
data_structures/src/data_request.rs#L817
error[E0061]: this method takes 1 argument but 0 arguments were supplied
--> data_structures/src/data_request.rs:817:19
|
817 | assert!(p.update_data_request_stages().is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^-- an argument of type `usize` is missing
|
note: method defined here
--> data_structures/src/data_request.rs:245:12
|
245 | pub fn update_data_request_stages(&mut self, validator_count: usize) -> Vec<RevealTransaction> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ ----------------------
help: provide the argument
|
817 | assert!(p.update_data_request_stages(/* usize */).is_empty());
| ~~~~~~~~~~~~~
|
this method takes 1 argument but 0 arguments were supplied:
data_structures/src/data_request.rs#L782
error[E0061]: this method takes 1 argument but 0 arguments were supplied
--> data_structures/src/data_request.rs:782:19
|
782 | assert!(p.update_data_request_stages().is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^-- an argument of type `usize` is missing
|
note: method defined here
--> data_structures/src/data_request.rs:245:12
|
245 | pub fn update_data_request_stages(&mut self, validator_count: usize) -> Vec<RevealTransaction> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ ----------------------
help: provide the argument
|
782 | assert!(p.update_data_request_stages(/* usize */).is_empty());
| ~~~~~~~~~~~~~
|
bound is defined in more than one place:
data_structures/src/utxo_pool.rs#L322
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
|
bound is defined in more than one place:
data_structures/src/utxo_pool.rs#L314
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)]`
|
bound is defined in more than one place:
data_structures/src/utxo_pool.rs#L330
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
|
bound is defined in more than one place:
data_structures/src/utxo_pool.rs#L322
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
|
bound is defined in more than one place:
data_structures/src/utxo_pool.rs#L314
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)]`
|
cannot find type `StakingResult` in this scope:
data_structures/src/staking/stakes.rs#L434
error[E0412]: cannot find type `StakingResult` in this scope
--> data_structures/src/staking/stakes.rs:434:6
|
434 | ) -> 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
|
cannot find type `StakingResult` in this scope:
data_structures/src/staking/stakes.rs#L434
error[E0412]: cannot find type `StakingResult` in this scope
--> data_structures/src/staking/stakes.rs:434:6
|
434 | ) -> 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
|
build_ubuntu
could not compile `witnet_data_structures` (lib) due to 5 previous errors
|
build_ubuntu
could not compile `witnet_data_structures` (lib test) due to 28 previous errors
|
build_ubuntu
Clippy had exited with the 101 exit code
|
build_ubuntu
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions-rs/toolchain@v1, actions-rs/cargo@v1, actions-rs/clippy-check@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
build_ubuntu
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/cargo@v1, actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
build_ubuntu
`/home/runner/work/witnet-rust/witnet-rust/.cargo/config` is deprecated in favor of `config.toml`
|
build_ubuntu
`/home/runner/work/witnet-rust/witnet-rust/.cargo/config` is deprecated in favor of `config.toml`
|
build_ubuntu
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
build_ubuntu
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
build_ubuntu
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
build_ubuntu
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
build_ubuntu
`/home/runner/work/witnet-rust/witnet-rust/.cargo/config` is deprecated in favor of `config.toml`
|