diff options
| author | Jakub Panek <me@panekj.dev> | 2022-04-28 17:53:59 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-28 18:53:59 +0100 |
| commit | 93ab4e7842ac3c3a37e8d423ae57ef3e7d151b7b (patch) | |
| tree | c910b1bb047a540c361f6cb6f8e403f1b83b925a /atuin-client/src/encryption.rs | |
| parent | Bump axum from 0.5.3 to 0.5.4 (#355) (diff) | |
| download | atuin-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/encryption.rs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/atuin-client/src/encryption.rs b/atuin-client/src/encryption.rs index f805cbd5..842fe9f3 100644 --- a/atuin-client/src/encryption.rs +++ b/atuin-client/src/encryption.rs @@ -8,16 +8,14 @@ // clients must share the secret in order to be able to sync, as it is needed // to decrypt -use fs_err as fs; -use serde::{Deserialize, Serialize}; -use std::io::prelude::*; -use std::path::PathBuf; +use std::{io::prelude::*, path::PathBuf}; use eyre::{eyre, Context, Result}; +use fs_err as fs; +use serde::{Deserialize, Serialize}; use sodiumoxide::crypto::secretbox; -use crate::history::History; -use crate::settings::Settings; +use crate::{history::History, settings::Settings}; #[derive(Debug, Serialize, Deserialize)] pub struct EncryptedHistory { |
