diff options
| author | Jakob L. Kreuze <zerodaysfordays@sdf.org> | 2020-05-25 19:07:31 -0400 |
|---|---|---|
| committer | Jakob L. Kreuze <zerodaysfordays@sdf.org> | 2020-05-25 19:07:31 -0400 |
| commit | 63ca9b9bde494f4857589b9dea03d93f981c5d45 (patch) | |
| tree | fe384847c495bc9be0d2f428731062c39dcd4e25 /src/birka-cli.rs | |
| parent | 899f517859fe2d2981ec5214892c1af966358c6a (diff) | |
Implement `put_posts`.
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 { |