Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
sokyrko committed Aug 24, 2023
1 parent b4c8801 commit c8a7f2a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion crates/sui-transactional-test-runner/src/test_adapter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,13 @@ impl<'a> MoveTestAdapter<'a> for SuiTestAdapter<'a> {
for dep in dependencies.iter() {
let named_address_mapping = &mut self.compiled_state.named_address_mapping;
let dep = &Symbol::from(dep.as_str());
let Some(orig_package) = self.package_upgrade_mapping.get(dep) else { continue };

let orig_package = if let Some(orig_package) = self.package_upgrade_mapping.get(dep) {
orig_package
} else {
continue;
};

let Some(orig_package_address) = named_address_mapping.insert(orig_package.to_string(), zero) else { continue };
original_package_addrs.push((*orig_package, orig_package_address));
let dep_address = named_address_mapping
Expand Down

0 comments on commit c8a7f2a

Please sign in to comment.