Skip to content

Commit

Permalink
fix: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
chungquantin committed Nov 4, 2024
1 parent 09293ef commit 4b6fe8c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions crates/pop-drink/src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,12 +164,11 @@ where
E: Decode + Encode + Debug,

Check warning on line 164 in crates/pop-drink/src/macros.rs

View workflow job for this annotation

GitHub Actions / clippy

missing documentation for a function

warning: missing documentation for a function --> crates/pop-drink/src/macros.rs:158:1 | 158 | / pub fn assert_last_contract_event_inner<S, E>(session: &Session<S>, event: E) 159 | | where 160 | | S: Sandbox, 161 | | S::Runtime: pallet_contracts::Config, 162 | | <S::Runtime as frame_system::Config>::RuntimeEvent: 163 | | TryInto<pallet_contracts::Event<S::Runtime>>, 164 | | E: Decode + Encode + Debug, | |_______________________________^
{
match last_contract_event(session) {
Some(last_event) => {
Some(last_event) =>
if last_event != event.encode().as_slice() {
let decoded = E::decode(&mut &last_event[..]).expect("Decoding failed");
panic!("{}", assert_message(&decoded, &event));
}
},
},
None => panic!("{}", assert_message(&"None", &event)),
}
}
Expand Down

0 comments on commit 4b6fe8c

Please sign in to comment.