Skip to content

Commit

Permalink
Import panic_any
Browse files Browse the repository at this point in the history
  • Loading branch information
cmichi committed Apr 15, 2021
1 parent 63da646 commit 813301e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions crates/engine/src/ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ use crate::{
Key,
},
};
use std::collections::HashMap;
use std::{
collections::HashMap,
panic::panic_any,
};

type Result = core::result::Result<(), Error>;

Expand Down Expand Up @@ -242,7 +245,7 @@ impl Engine {
// This enables testing for the proper result and makes sure this
// method returns `Never`.
let res = (all, beneficiary.to_vec());
std::panic::panic_any(scale::Encode::encode(&res));
panic_any(scale::Encode::encode(&res));
}

/// Returns the address of the caller.
Expand Down

0 comments on commit 813301e

Please sign in to comment.