feat: update dependencies, optimize
This commit is contained in:
@@ -33,8 +33,8 @@ impl DigestWrite {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn sha256() -> XResult<Self> {
|
||||
Ok(Self { digest: Box::new(Sha256::new()) })
|
||||
pub fn sha256() -> Self {
|
||||
Self { digest: Box::new(Sha256::new()) }
|
||||
}
|
||||
|
||||
pub fn digest(self) -> Vec<u8> {
|
||||
|
||||
Reference in New Issue
Block a user