remove solana client dependency #73
Annotations
4 errors and 4 warnings
question mark operator is useless here:
src/rpc/mod.rs#L228
error: question mark operator is useless here
--> src/rpc/mod.rs:228:9
|
228 | / Ok(account_response
229 | | .into_iter()
230 | | .map(|r| {
231 | | Ok((
... |
243 | | })
244 | | .collect::<Result<Vec<(Pubkey, Account)>>>()?)
| |__________________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
= note: `-D clippy::needless-question-mark` implied by `-D clippy::all`
help: try removing question mark and `Ok()`
|
228 ~ account_response
229 + .into_iter()
230 + .map(|r| {
231 + Ok((
232 + (r.pubkey),
233 + Account {
234 + lamports: r.account.lamports,
235 + owner: r.account.owner,
236 + data: base64::engine::general_purpose::STANDARD
237 + .decode(&r.account.data[0])
238 + .map_err(Error::B64Decode)?,
239 + executable: r.account.executable,
240 + rent_epoch: r.account.rent_epoch,
241 + },
242 + ))
243 + })
244 + .collect::<Result<Vec<(Pubkey, Account)>>>()
|
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/rpc/mod.rs#L93
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/rpc/mod.rs:93:51
|
93 | let json = RpcCall::get_multiple_accounts(&pubkeys);
| ^^^^^^^^ help: change this to: `pubkeys`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `-D clippy::needless-borrow` implied by `-D clippy::all`
|
this `.into_iter()` call is equivalent to `.iter()` and will not consume the `Vec`:
src/rpc/rpc_call.rs#L100
error: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `Vec`
--> src/rpc/rpc_call.rs:100:52
|
100 | GetAccountInfoParam::Pubkeys(array.into_iter().map(|p| (*p).into()).collect()),
| ^^^^^^^^^ help: call directly: `iter`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref
= note: `-D clippy::into-iter-on-ref` implied by `-D clippy::all`
|
build-linux
Clippy had exited with the 101 exit code
|
build-linux
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-linux
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-linux
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-linux
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/
|