From 16a56f12cd2e66e10f8bb5e2c4026d3a7148e680 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Thu, 2 Jan 2020 21:10:55 +0100 Subject: Cargo fmt --- src/xchan.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/xchan.rs') diff --git a/src/xchan.rs b/src/xchan.rs index 68f7622..9b920d5 100644 --- a/src/xchan.rs +++ b/src/xchan.rs @@ -36,10 +36,7 @@ pub struct XChanFetcher<'a> { impl<'a> XChanFetcher<'a> { pub fn new(client: &'a Client) -> XChanFetcher<'a> { - XChanFetcher { - client, - data: None, - } + XChanFetcher { client, data: None } } pub fn by_address(&mut self, addr: &'a str) -> &mut XChanFetcher<'a> { @@ -58,6 +55,7 @@ impl<'a> XChanFetcher<'a> { } pub fn fetch(&self) -> Result { - self.client.fetch_stream(client::ZOTAPI_XCHAN_PATH, &self.data.as_ref().unwrap()) + self.client + .fetch_stream(client::ZOTAPI_XCHAN_PATH, &self.data.as_ref().unwrap()) } } -- cgit v1.2.3