summaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-10-18 13:18:31 -0700
committerBryan Newbold <bnewbold@archive.org>2020-10-18 13:18:31 -0700
commit5095c3030048b3dc469a363b0c8cad9278baab75 (patch)
treed7b9f546cb23b5a8deaffdb1f73429734b3ebbcc /src/lib.rs
parentf3580e317235398e70fac5439f931c35c7bbcea6 (diff)
downloades-public-proxy-5095c3030048b3dc469a363b0c8cad9278baab75.tar.gz
es-public-proxy-5095c3030048b3dc469a363b0c8cad9278baab75.zip
rustfmt
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 9145fb1..c420e96 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -146,7 +146,9 @@ pub async fn filter_request(
| (&Method::OPTIONS, [index, "_mapping"]) => {
filter_read_request(index, path_chunks[1], &params, config)?
}
- _ => Err(ProxyError::NotSupported("unknown elasticsearch API endpoint".to_string()))?,
+ _ => Err(ProxyError::NotSupported(
+ "unknown elasticsearch API endpoint".to_string(),
+ ))?,
};
let upstream_query = serde_urlencoded::to_string(params).expect("re-encoding URL parameters");