Skip to content

Commit

Permalink
Simplify conversion into Path
Browse files Browse the repository at this point in the history
  • Loading branch information
mappum committed Dec 2, 2019
1 parent e5826c3 commit 22bc874
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tendermint/tests/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
/// cargo test -- --ignored
/// ```
mod rpc {
use std::str::FromStr;
use tendermint::{abci::Path, rpc::Client};
use tendermint::rpc::Client;

/// Get the address of the local node
pub fn localhost_rpc_client() -> Client {
Expand All @@ -29,7 +28,7 @@ mod rpc {
#[test]
#[ignore]
fn abci_query() {
let key = Path::from_str("unpopulated_key").unwrap();
let key = "unpopulated_key".parse().unwrap();
let abci_query = localhost_rpc_client()
.abci_query(Some(key), vec![], None, false)
.unwrap();
Expand Down

0 comments on commit 22bc874

Please sign in to comment.