Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
segfault-magnet committed Nov 19, 2024
1 parent 5f6c766 commit f383b79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions e2e/tests/debug_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ async fn can_debug_sway_script() -> Result<()> {
let abi =
std::fs::read_to_string("./sway/scripts/script_struct/out/release/script_struct-abi.json")?;

let decoder = ABIFormatter::from_json_abi(&abi)?;
let decoder = ABIFormatter::from_json_abi(abi)?;

let ScriptType::Other(desc) = ScriptType::detect(&tb.script, &tb.script_data).unwrap() else {
panic!("expected a script")
Expand Down Expand Up @@ -391,7 +391,7 @@ async fn debugs_sway_script_with_no_configurables() -> Result<()> {
let abi =
std::fs::read_to_string("./sway/scripts/basic_script/out/release/basic_script-abi.json")?;

let decoder = ABIFormatter::from_json_abi(&abi)?;
let decoder = ABIFormatter::from_json_abi(abi)?;

let ScriptType::Other(desc) = ScriptType::detect(&tb.script, &tb.script_data).unwrap() else {
panic!("expected a script")
Expand Down

0 comments on commit f383b79

Please sign in to comment.