Bump tokio from 1.43.0 to 1.46.1 #34
lint.yml
on: pull_request
Formatting
28s
Clippy
2m 39s
Annotations
10 errors and 2 warnings
|
the `Err`-variant returned from this function is very large:
app/src/main.rs#L326
error: the `Err`-variant returned from this function is very large
--> app/src/store.rs:326:32
|
59 | Transaction(#[from] redb::TransactionError),
| ------------------------------------------- the largest variant contains at least 160 bytes
...
326 | fn create_tables(&self) -> Result<(), StoreError> {
| ^^^^^^^^^^^^^^^^^^^^^^
|
= help: try reducing the size of `store::StoreError`, for example by boxing large elements or replacing it with `Box<store::StoreError>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
|
|
the `Err`-variant returned from this function is very large:
app/src/main.rs#L265
error: the `Err`-variant returned from this function is very large
--> app/src/store.rs:265:47
|
59 | Transaction(#[from] redb::TransactionError),
| ------------------------------------------- the largest variant contains at least 160 bytes
...
265 | fn prune(&self, retain_height: Height) -> Result<Vec<Height>, StoreError> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: try reducing the size of `store::StoreError`, for example by boxing large elements or replacing it with `Box<store::StoreError>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
|
|
the `Err`-variant returned from this function is very large:
app/src/main.rs#L254
error: the `Err`-variant returned from this function is very large
--> app/src/store.rs:254:10
|
59 | Transaction(#[from] redb::TransactionError),
| ------------------------------------------- the largest variant contains at least 160 bytes
...
254 | ) -> Result<Vec<(Height, Round)>, StoreError>
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: try reducing the size of `store::StoreError`, for example by boxing large elements or replacing it with `Box<store::StoreError>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
|
|
the `Err`-variant returned from this function is very large:
app/src/main.rs#L239
error: the `Err`-variant returned from this function is very large
--> app/src/store.rs:239:10
|
59 | Transaction(#[from] redb::TransactionError),
| ------------------------------------------- the largest variant contains at least 160 bytes
...
239 | ) -> Result<Vec<(Height, Round)>, StoreError>
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: try reducing the size of `store::StoreError`, for example by boxing large elements or replacing it with `Box<store::StoreError>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
|
|
the `Err`-variant returned from this function is very large:
app/src/main.rs#L224
error: the `Err`-variant returned from this function is very large
--> app/src/store.rs:224:10
|
59 | Transaction(#[from] redb::TransactionError),
| ------------------------------------------- the largest variant contains at least 160 bytes
...
224 | ) -> Result<Vec<Height>, StoreError>
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: try reducing the size of `store::StoreError`, for example by boxing large elements or replacing it with `Box<store::StoreError>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
|
|
the `Err`-variant returned from this function is very large:
app/src/main.rs#L198
error: the `Err`-variant returned from this function is very large
--> app/src/store.rs:198:10
|
59 | Transaction(#[from] redb::TransactionError),
| ------------------------------------------- the largest variant contains at least 160 bytes
...
198 | ) -> Result<(), StoreError> {
| ^^^^^^^^^^^^^^^^^^^^^^
|
= help: try reducing the size of `store::StoreError`, for example by boxing large elements or replacing it with `Box<store::StoreError>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
|
|
the `Err`-variant returned from this function is very large:
app/src/main.rs#L133
error: the `Err`-variant returned from this function is very large
--> app/src/store.rs:133:68
|
59 | Transaction(#[from] redb::TransactionError),
| ------------------------------------------- the largest variant contains at least 160 bytes
...
133 | fn insert_decided_value(&self, decided_value: DecidedValue) -> Result<(), StoreError> {
| ^^^^^^^^^^^^^^^^^^^^^^
|
= help: try reducing the size of `store::StoreError`, for example by boxing large elements or replacing it with `Box<store::StoreError>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
|
|
the `Err`-variant returned from this function is very large:
app/src/main.rs#L96
error: the `Err`-variant returned from this function is very large
--> app/src/store.rs:96:52
|
59 | Transaction(#[from] redb::TransactionError),
| ------------------------------------------- the largest variant contains at least 160 bytes
...
96 | fn get_decided_value(&self, height: Height) -> Result<Option<DecidedValue>, StoreError> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: try reducing the size of `store::StoreError`, for example by boxing large elements or replacing it with `Box<store::StoreError>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
|
|
the `Err`-variant returned from this function is very large:
app/src/main.rs#L89
error: the `Err`-variant returned from this function is very large
--> app/src/store.rs:89:59
|
59 | Transaction(#[from] redb::TransactionError),
| ------------------------------------------- the largest variant contains at least 160 bytes
...
89 | fn new(path: impl AsRef<Path>, metrics: DbMetrics) -> Result<Self, StoreError> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: try reducing the size of `store::StoreError`, for example by boxing large elements or replacing it with `Box<store::StoreError>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
= note: `-D clippy::result-large-err` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::result_large_err)]`
|
|
called `unwrap` on `current_signer` after checking its variant with `is_some`:
app/src/bin/utils.rs#L375
error: called `unwrap` on `current_signer` after checking its variant with `is_some`
--> app/src/bin/utils.rs:375:37
|
366 | else if line.contains("balance for") && current_signer.is_some() {
| ------------------------ the check is happening here
...
375 | signer: current_signer.unwrap(),
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= help: try using `if let` or `match`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap
= note: `-D clippy::unnecessary-unwrap` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::unnecessary_unwrap)]`
|
|
Formatting
The process '/usr/bin/git' failed with exit code 128
|
|
Clippy
The process '/usr/bin/git' failed with exit code 128
|