diff options
| author | Eduardo Leegwater Simões <[email protected]> | 2023-04-18 10:59:19 +0200 |
|---|---|---|
| committer | Jack O'Connor <[email protected]> | 2023-05-01 03:23:16 -0500 |
| commit | ce48d79f38a8862b749ec6cc12ba5d1da69ab131 (patch) | |
| tree | fff31f375d44ff1a9023002b95392da0ef29780a /src | |
| parent | 3f65cabb7ddd56e3b388da35a2d527f1d7fca366 (diff) | |
make `Hash::as_bytes` const
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -204,7 +204,7 @@ impl Hash { /// constant-time equality checking, so if you need to compare hashes, /// prefer the `Hash` type. #[inline] - pub fn as_bytes(&self) -> &[u8; OUT_LEN] { + pub const fn as_bytes(&self) -> &[u8; OUT_LEN] { &self.0 } |
