diff options
| author | Conrad Ludgate <conradludgate@gmail.com> | 2022-04-25 07:13:30 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-25 07:13:30 +0100 |
| commit | 7f5310a1aa87cb32499e7f50c864fdaa9a82bd53 (patch) | |
| tree | a1c499f3876d92687f71e72076c3a715d9f16798 /atuin-common/src/utils.rs | |
| parent | Release v0.9.1 (#338) (diff) | |
| download | atuin-7f5310a1aa87cb32499e7f50c864fdaa9a82bd53.zip | |
history list (#340)
Diffstat (limited to 'atuin-common/src/utils.rs')
| -rw-r--r-- | atuin-common/src/utils.rs | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/atuin-common/src/utils.rs b/atuin-common/src/utils.rs index 3e3e645b..59545a26 100644 --- a/atuin-common/src/utils.rs +++ b/atuin-common/src/utils.rs @@ -3,15 +3,6 @@ use std::path::PathBuf; use chrono::NaiveDate; use uuid::Uuid; -pub fn hash_str(string: &str) -> String { - use crypto::digest::Digest; - use crypto::sha2::Sha256; - let mut hasher = Sha256::new(); - hasher.input_str(string); - - hasher.result_str() -} - pub fn uuid_v4() -> String { Uuid::new_v4().as_simple().to_string() } |
