aboutsummaryrefslogtreecommitdiffstats
path: root/atuin-client/src/api_client.rs
diff options
context:
space:
mode:
authorJakub Panek <me@panekj.dev>2022-04-28 17:53:59 +0000
committerGitHub <noreply@github.com>2022-04-28 18:53:59 +0100
commit93ab4e7842ac3c3a37e8d423ae57ef3e7d151b7b (patch)
treec910b1bb047a540c361f6cb6f8e403f1b83b925a /atuin-client/src/api_client.rs
parentBump axum from 0.5.3 to 0.5.4 (#355) (diff)
downloadatuin-93ab4e7842ac3c3a37e8d423ae57ef3e7d151b7b.zip
ignore JetBrains IDEs, tidy-up imports (#348)
* ignore JB IDEs * tidy-up imports * add rustfmt config
Diffstat (limited to '')
-rw-r--r--atuin-client/src/api_client.rs14
1 files changed, 9 insertions, 5 deletions
diff --git a/atuin-client/src/api_client.rs b/atuin-client/src/api_client.rs
index 528d1611..d0511f8e 100644
--- a/atuin-client/src/api_client.rs
+++ b/atuin-client/src/api_client.rs
@@ -2,8 +2,10 @@ use std::collections::HashMap;
use chrono::Utc;
use eyre::{bail, Result};
-use reqwest::header::{HeaderMap, AUTHORIZATION, USER_AGENT};
-use reqwest::{StatusCode, Url};
+use reqwest::{
+ header::{HeaderMap, AUTHORIZATION, USER_AGENT},
+ StatusCode, Url,
+};
use sodiumoxide::crypto::secretbox;
use atuin_common::api::{
@@ -11,9 +13,11 @@ use atuin_common::api::{
SyncHistoryResponse,
};
-use crate::encryption::{decode_key, decrypt};
-use crate::history::History;
-use crate::sync::hash_str;
+use crate::{
+ encryption::{decode_key, decrypt},
+ history::History,
+ sync::hash_str,
+};
static APP_USER_AGENT: &str = concat!("atuin/", env!("CARGO_PKG_VERSION"),);