diff options
Diffstat (limited to 'src/birka-cli.rs')
| -rw-r--r-- | src/birka-cli.rs | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/birka-cli.rs b/src/birka-cli.rs index d2caba3..1306c93 100644 --- a/src/birka-cli.rs +++ b/src/birka-cli.rs @@ -22,20 +22,10 @@ extern crate dirs; mod database; use anyhow::Result; -use blake2::{Blake2b, Digest}; use database::TagDatabase; use std::env; -use std::io; use std::path::Path; -/// Return a base64-encoded BLAKE2b hash identifying the file at `path`. -fn hash_file(path: &Path) -> Result<String> { - let mut file = std::fs::File::open(path)?; - let mut hasher = Blake2b::new(); - io::copy(&mut file, &mut hasher)?; - Ok(base64::encode(&hasher.result())) -} - fn main() { let args: Vec<String> = env::args().collect(); if args.len() < 2 { |