Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
pmikolajczyk41 committed Nov 10, 2023
1 parent 86aa529 commit ebc117d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion drink-cli/src/executor/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ fn find_wasm_blob(cwd: &Path) -> Option<(String, PathBuf)> {
let Some(file) = entries
.into_iter()
.filter_map(|e| e.ok())
.find(|e| e.path().extension().unwrap_or_default() == "wasm") else {
.find(|e| e.path().extension().unwrap_or_default() == "wasm")
else {
return None;
};

Expand Down
1 change: 1 addition & 0 deletions drink/src/sandbox/contract_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ impl<R: pallet_contracts::Config> Sandbox<R> {
/// * `origin` - The sender of the contract call.
/// * `gas_limit` - The gas limit for the contract call.
/// * `storage_deposit_limit` - The storage deposit limit for the contract call.
#[allow(clippy::too_many_arguments)]
pub fn call_contract(
&mut self,
address: AccountIdFor<R>,
Expand Down

0 comments on commit ebc117d

Please sign in to comment.