mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
style: Fix clipy lint
This commit is contained in:
@@ -19,9 +19,7 @@ where
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ctx.finalize()
|
ctx.finalize().into()
|
||||||
.try_into()
|
|
||||||
.expect("failed to return Digest buffer")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Sha256 hash (input gather)
|
/// Sha256 hash (input gather)
|
||||||
@@ -38,8 +36,7 @@ where
|
|||||||
ctx
|
ctx
|
||||||
})
|
})
|
||||||
.finalize()
|
.finalize()
|
||||||
.try_into()
|
.into()
|
||||||
.expect("failed to return Digest buffer")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Sha256 hash
|
/// Sha256 hash
|
||||||
@@ -50,7 +47,5 @@ pub fn hash<T>(input: T) -> DigestOut
|
|||||||
where
|
where
|
||||||
T: AsRef<[u8]>,
|
T: AsRef<[u8]>,
|
||||||
{
|
{
|
||||||
Sha256::digest(input)
|
Sha256::digest(input).into()
|
||||||
.try_into()
|
|
||||||
.expect("failed to return Digest buffer")
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user