init
This commit is contained in:
@@ -124,7 +124,10 @@ impl EmojiService {
|
||||
Ok(())
|
||||
}
|
||||
pub fn hash(data: &[u8]) -> String {
|
||||
format!("{:x}", Sha256::digest(data))
|
||||
Sha256::digest(data)
|
||||
.iter()
|
||||
.map(|byte| format!("{byte:02x}"))
|
||||
.collect()
|
||||
}
|
||||
pub async fn save_asset(
|
||||
root: &Path,
|
||||
|
||||
Reference in New Issue
Block a user