Skip to content

Commit

Permalink
Remove unneeded bounds from ValidityCondition
Browse files Browse the repository at this point in the history
  • Loading branch information
citizen-stig committed Aug 25, 2023
1 parent ebef2a9 commit 782ab64
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ fn main() {
let actual_foo = <MyEnum as sov_modules_api::CliWalletArg>::CliStringRepr::try_parse_from(&[
"myenum", "foo", "1", "hello",
])
.expect("parsing must succed")
.expect("parsing must succeed")
.into();
assert_eq!(expected_foo, actual_foo);

let expected_bar = MyEnum::Bar(2);
let actual_bar = <MyEnum as sov_modules_api::CliWalletArg>::CliStringRepr::try_parse_from(&[
"myenum", "bar", "2",
])
.expect("parsing must succed")
.expect("parsing must succeed")
.into();

assert_eq!(expected_bar, actual_bar);
Expand Down
2 changes: 1 addition & 1 deletion rollup-interface/src/state_machine/zk/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ pub trait ZkvmGuest: Zkvm {

/// This trait is implemented on the struct/enum which expresses the validity condition
pub trait ValidityCondition:
Serialize + DeserializeOwned + BorshDeserialize + BorshSerialize + Debug + Clone + Copy + PartialEq
BorshDeserialize + BorshSerialize + Debug + Clone + Copy + PartialEq
{
/// The error type returned when two [`ValidityCondition`]s cannot be combined.
type Error: Into<anyhow::Error>;
Expand Down

0 comments on commit 782ab64

Please sign in to comment.