mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-09 14:48:08 -05:00
contract/deployooor: Clippy lint
This commit is contained in:
@@ -58,10 +58,7 @@ fn init_contract(cid: ContractId, _ix: &[u8]) -> ContractResult {
|
||||
// Set up a database tree for arbitrary data
|
||||
let info_db = match db_lookup(cid, DEPLOY_CONTRACT_INFO_TREE) {
|
||||
Ok(v) => v,
|
||||
Err(_) => {
|
||||
let info_db = db_init(cid, DEPLOY_CONTRACT_INFO_TREE)?;
|
||||
info_db
|
||||
}
|
||||
Err(_) => db_init(cid, DEPLOY_CONTRACT_INFO_TREE)?,
|
||||
};
|
||||
|
||||
// Set up a database to hold the set of locked contracts
|
||||
|
||||
@@ -112,8 +112,7 @@ pub(crate) fn deploy_process_instruction_v1(
|
||||
}
|
||||
};
|
||||
|
||||
match payload {
|
||||
ExportSection(v) => {
|
||||
if let ExportSection(v) = payload {
|
||||
for element in v.into_iter_with_offsets() {
|
||||
let (_, element) = match element {
|
||||
Ok(v) => v,
|
||||
@@ -148,8 +147,6 @@ pub(crate) fn deploy_process_instruction_v1(
|
||||
}
|
||||
}
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
|
||||
if !found_memory || !found_initialize || !found_entrypoint || !found_update || !found_metadata {
|
||||
|
||||
Reference in New Issue
Block a user