Skip to content

Commit e0b7dce

Browse files
committed
src/lib.rs:apply cargo fmt
1 parent 885f9d2 commit e0b7dce

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ const URL: &str = "https://mempool.space/api";
2020
/// `pub fn blocking(api: &String) -> Result<&str>`
2121
pub fn blocking(api: &String) -> Result<&str> {
2222
let call = format!("{}/{}", URL, api);
23-
let mut body = ureq::get(&call).call().expect("calls to blocking(api: &String) needs to include /v1/<api_endpoint> in some cases.").into_reader();
23+
let mut body = ureq::get(&call)
24+
.call()
25+
.expect("calls to blocking(api: &String) needs to include /v1/<api_endpoint> in some cases.")
26+
.into_reader();
2427
let mut buf = Vec::new();
2528
body.read_to_end(&mut buf).unwrap();
2629
let text = match std::str::from_utf8(&buf) {

0 commit comments

Comments
 (0)