feat(pop-drink): add testnet runtime environment #61
clippy
142 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 142 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.82.0 (f6e511eec 2024-10-15)
- cargo 1.82.0 (8f40fc59f 2024-08-21)
- clippy 0.1.82 (f6e511e 2024-10-15)
Annotations
Check warning on line 24 in crates/drink/drink-cli/src/main.rs
github-actions / clippy
missing documentation for the crate
warning: missing documentation for the crate
--> crates/drink/drink-cli/src/main.rs:1:1
|
1 | / use std::path::PathBuf;
2 | |
3 | | use anyhow::Result;
4 | | use clap::Parser;
... |
23 | | run_ui(args.path)
24 | | }
| |_^
|
= note: requested on the command line with `-W missing-docs`
Check warning on line 121 in crates/drink/drink-cli/src/executor/contract.rs
github-actions / clippy
this `let...else` may be rewritten with the `?` operator
warning: this `let...else` may be rewritten with the `?` operator
--> crates/drink/drink-cli/src/executor/contract.rs:115:2
|
115 | / let Some(file) = entries
116 | | .into_iter()
117 | | .filter_map(|e| e.ok())
118 | | .find(|e| e.path().extension().unwrap_or_default() == "wasm")
119 | | else {
120 | | return None;
121 | | };
| |______^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#question_mark
= note: `#[warn(clippy::question_mark)]` on by default
help: replace it with
|
115 ~ let file = entries
116 ~ .into_iter()
117 ~ .filter_map(|e| e.ok())
118 ~ .find(|e| e.path().extension().unwrap_or_default() == "wasm")?;
|
Check warning on line 13 in crates/drink/drink-cli/src/app_state/contracts.rs
github-actions / clippy
field `transcoder` is never read
warning: field `transcoder` is never read
--> crates/drink/drink-cli/src/app_state/contracts.rs:13:6
|
9 | pub struct Contract {
| -------- field in this struct
...
13 | pub transcoder: Arc<ContractMessageTranscoder>,
| ^^^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default
Check warning on line 164 in crates/pop-drink/src/macros.rs
github-actions / clippy
missing documentation for a function
warning: missing documentation for a function
--> crates/pop-drink/src/macros.rs:158:1
|
158 | / pub fn assert_last_contract_event_inner<S, E>(session: &Session<S>, event: E)
159 | | where
160 | | S: Sandbox,
161 | | S::Runtime: pallet_contracts::Config,
162 | | <S::Runtime as frame_system::Config>::RuntimeEvent:
163 | | TryInto<pallet_contracts::Event<S::Runtime>>,
164 | | E: Decode + Encode + Debug,
| |_______________________________^
Check warning on line 115 in crates/pop-drink/src/macros.rs
github-actions / clippy
missing documentation for a function
warning: missing documentation for a function
--> crates/pop-drink/src/macros.rs:112:1
|
112 | / pub fn assert_err_inner<R, E, Error>(result: Result<R, E>, expected_error: Error)
113 | | where
114 | | E: Into<u32>,
115 | | Error: From<u32> + Into<u32> + Debug,
| |_________________________________________^
|
= note: requested on the command line with `-W missing-docs`
Check warning on line 68 in crates/pop-drink/src/error.rs
github-actions / clippy
useless use of `vec!`
warning: useless use of `vec!`
--> crates/pop-drink/src/error.rs:68:15
|
68 | let data = vec![vec![index], module_error.to_vec()].concat();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use an array directly: `[vec![index], module_error.to_vec()]`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec
= note: `#[warn(clippy::useless_vec)]` on by default
Check warning on line 194 in crates/pop-drink/src/lib.rs
github-actions / clippy
using tabs in doc comments is not recommended
warning: using tabs in doc comments is not recommended
--> crates/pop-drink/src/lib.rs:194:5
|
194 | /// .as_slice()
| ^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
Check warning on line 193 in crates/pop-drink/src/lib.rs
github-actions / clippy
using tabs in doc comments is not recommended
warning: using tabs in doc comments is not recommended
--> crates/pop-drink/src/lib.rs:193:5
|
193 | /// .encode()
| ^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
Check warning on line 192 in crates/pop-drink/src/lib.rs
github-actions / clippy
using tabs in doc comments is not recommended
warning: using tabs in doc comments is not recommended
--> crates/pop-drink/src/lib.rs:192:5
|
192 | /// }
| ^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
Check warning on line 191 in crates/pop-drink/src/lib.rs
github-actions / clippy
using tabs in doc comments is not recommended
warning: using tabs in doc comments is not recommended
--> crates/pop-drink/src/lib.rs:191:5
|
191 | /// value: 42,
| ^^^^^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
Check warning on line 190 in crates/pop-drink/src/lib.rs
github-actions / clippy
using tabs in doc comments is not recommended
warning: using tabs in doc comments is not recommended
--> crates/pop-drink/src/lib.rs:190:5
|
190 | /// ContractEvent {
| ^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
Check warning on line 189 in crates/pop-drink/src/lib.rs
github-actions / clippy
using tabs in doc comments is not recommended
warning: using tabs in doc comments is not recommended
--> crates/pop-drink/src/lib.rs:189:5
|
189 | /// last_contract_event::<Pop>(&session).unwrap(),
| ^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
Check warning on line 146 in crates/pop-drink/src/lib.rs
github-actions / clippy
using tabs in doc comments is not recommended
warning: using tabs in doc comments is not recommended
--> crates/pop-drink/src/lib.rs:146:5
|
146 | /// )
| ^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
Check warning on line 145 in crates/pop-drink/src/lib.rs
github-actions / clippy
using tabs in doc comments is not recommended
warning: using tabs in doc comments is not recommended
--> crates/pop-drink/src/lib.rs:145:5
|
145 | /// init_value,
| ^^^^^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
Check warning on line 144 in crates/pop-drink/src/lib.rs
github-actions / clippy
using tabs in doc comments is not recommended
warning: using tabs in doc comments is not recommended
--> crates/pop-drink/src/lib.rs:144:5
|
144 | /// input,
| ^^^^^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
Check warning on line 143 in crates/pop-drink/src/lib.rs
github-actions / clippy
using tabs in doc comments is not recommended
warning: using tabs in doc comments is not recommended
--> crates/pop-drink/src/lib.rs:143:5
|
143 | /// "transfer",
| ^^^^^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
Check warning on line 142 in crates/pop-drink/src/lib.rs
github-actions / clippy
using tabs in doc comments is not recommended
warning: using tabs in doc comments is not recommended
--> crates/pop-drink/src/lib.rs:142:5
|
142 | /// session,
| ^^^^^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
Check warning on line 141 in crates/pop-drink/src/lib.rs
github-actions / clippy
using tabs in doc comments is not recommended
warning: using tabs in doc comments is not recommended
--> crates/pop-drink/src/lib.rs:141:5
|
141 | /// call::<Pop, (), ContractError>(
| ^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
Check warning on line 140 in crates/pop-drink/src/lib.rs
github-actions / clippy
using tabs in doc comments is not recommended
warning: using tabs in doc comments is not recommended
--> crates/pop-drink/src/lib.rs:140:5
|
140 | /// // `ContractError` is the error type used by the contract.
| ^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
Check warning on line 139 in crates/pop-drink/src/lib.rs
github-actions / clippy
using tabs in doc comments is not recommended
warning: using tabs in doc comments is not recommended
--> crates/pop-drink/src/lib.rs:139:5
|
139 | /// // `()` is the successful result type used by the contract.
| ^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
Check warning on line 138 in crates/pop-drink/src/lib.rs
github-actions / clippy
using tabs in doc comments is not recommended
warning: using tabs in doc comments is not recommended
--> crates/pop-drink/src/lib.rs:138:5
|
138 | /// //
| ^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
Check warning on line 137 in crates/pop-drink/src/lib.rs
github-actions / clippy
using tabs in doc comments is not recommended
warning: using tabs in doc comments is not recommended
--> crates/pop-drink/src/lib.rs:137:5
|
137 | /// // Call contract.
| ^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
Check warning on line 135 in crates/pop-drink/src/lib.rs
github-actions / clippy
using tabs in doc comments is not recommended
warning: using tabs in doc comments is not recommended
--> crates/pop-drink/src/lib.rs:135:5
|
135 | /// assert_ok!(deploy<Pop, ContractError>(&mut session, bundle, "new", input, salt, init_value));
| ^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
Check warning on line 134 in crates/pop-drink/src/lib.rs
github-actions / clippy
using tabs in doc comments is not recommended
warning: using tabs in doc comments is not recommended
--> crates/pop-drink/src/lib.rs:134:5
|
134 | /// let bundle = BundleProvider::local().unwrap();
| ^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
Check warning on line 91 in crates/pop-drink/src/lib.rs
github-actions / clippy
using tabs in doc comments is not recommended
warning: using tabs in doc comments is not recommended
--> crates/pop-drink/src/lib.rs:91:5
|
91 | /// assert_ok!(deploy<Pop, ContractError>(&mut session, bundle, "new", input, salt, init_value));
| ^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments