Skip to content

Commit

Permalink
fix unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
rnbguy committed Apr 26, 2024
1 parent 14ffcdf commit faa5a98
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions ibc-testkit/src/testapp/ibc/clients/mock/client_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -495,13 +495,12 @@ impl From<MockConsensusState> for MockClientState {

#[cfg(test)]
mod test {
use ibc::primitives::proto::Any;

use super::{MockClientState, MockHeader};

#[cfg(feature = "serde")]

Check warning on line 498 in ibc-testkit/src/testapp/ibc/clients/mock/client_state.rs

View workflow job for this annotation

GitHub Actions / nightly_fmt

Diff in /home/runner/work/ibc-rs/ibc-rs/ibc-testkit/src/testapp/ibc/clients/mock/client_state.rs
#[test]
fn test_any_client_state_to_json() {
use super::{MockClientState, MockHeader};
use ibc::primitives::proto::Any;

let client_state = MockClientState::new(MockHeader::default());
let expected = r#"{"typeUrl":"/ibc.mock.ClientState","value":"CgQKAhABEIDIr6Al"}"#;
let json = serde_json::to_string(&Any::from(client_state)).unwrap();
Expand Down

0 comments on commit faa5a98

Please sign in to comment.