summaryrefslogtreecommitdiffstats
path: root/src/backend.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend.rs')
-rw-r--r--src/backend.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/backend.rs b/src/backend.rs
index feba9d9..e260e8c 100644
--- a/src/backend.rs
+++ b/src/backend.rs
@@ -1,9 +1,9 @@
use clap::ArgMatches;
use librepology::v1::api::Api;
+use librepology::v1::buffer::BufferApi;
use librepology::v1::error::Result;
use librepology::v1::restapi::RestApi;
-use librepology::v1::buffer::BufferApi;
use librepology::v1::types::*;
use crate::config::Configuration;
@@ -44,7 +44,9 @@ impl Api for Backend {
pub fn new_backend(app: &ArgMatches, config: &Configuration) -> anyhow::Result<Backend> {
if app.is_present("input_stdin") {
trace!("Building new STDIN backend");
- BufferApi::read_from(std::io::stdin()).map(Backend::Buffer).map_err(anyhow::Error::from)
+ BufferApi::read_from(std::io::stdin())
+ .map(Backend::Buffer)
+ .map_err(anyhow::Error::from)
} else {
trace!("Building new remote backend");
let url = config.repology_url().as_str().into();