Skip to content

Commit 4ca7589

Browse files
committed
MaybeUninit is stable now
1 parent d322d3a commit 4ca7589

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

boring/src/sha.rs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ use std::mem::MaybeUninit;
5454
/// SHA1 is known to be insecure - it should not be used unless required for
5555
/// compatibility with existing systems.
5656
#[inline]
57-
#[allow(deprecated)] // https://github.com/rust-lang/rust/issues/63566
5857
#[must_use]
5958
pub fn sha1(data: &[u8]) -> [u8; 20] {
6059
unsafe {
@@ -66,7 +65,6 @@ pub fn sha1(data: &[u8]) -> [u8; 20] {
6665

6766
/// Computes the SHA224 hash of some data.
6867
#[inline]
69-
#[allow(deprecated)] // https://github.com/rust-lang/rust/issues/63566
7068
#[must_use]
7169
pub fn sha224(data: &[u8]) -> [u8; 28] {
7270
unsafe {
@@ -78,7 +76,6 @@ pub fn sha224(data: &[u8]) -> [u8; 28] {
7876

7977
/// Computes the SHA256 hash of some data.
8078
#[inline]
81-
#[allow(deprecated)] // https://github.com/rust-lang/rust/issues/63566
8279
#[must_use]
8380
pub fn sha256(data: &[u8]) -> [u8; 32] {
8481
unsafe {
@@ -90,7 +87,6 @@ pub fn sha256(data: &[u8]) -> [u8; 32] {
9087

9188
/// Computes the SHA384 hash of some data.
9289
#[inline]
93-
#[allow(deprecated)] // https://github.com/rust-lang/rust/issues/63566
9490
#[must_use]
9591
pub fn sha384(data: &[u8]) -> [u8; 48] {
9692
unsafe {
@@ -102,7 +98,6 @@ pub fn sha384(data: &[u8]) -> [u8; 48] {
10298

10399
/// Computes the SHA512 hash of some data.
104100
#[inline]
105-
#[allow(deprecated)] // https://github.com/rust-lang/rust/issues/63566
106101
#[must_use]
107102
pub fn sha512(data: &[u8]) -> [u8; 64] {
108103
unsafe {
@@ -114,7 +109,6 @@ pub fn sha512(data: &[u8]) -> [u8; 64] {
114109

115110
/// Computes the SHA512-256 hash of some data.
116111
#[inline]
117-
#[allow(deprecated)] // https://github.com/rust-lang/rust/issues/63566
118112
#[must_use]
119113
pub fn sha512_256(data: &[u8]) -> [u8; 32] {
120114
unsafe {
@@ -143,7 +137,6 @@ impl Default for Sha1 {
143137
impl Sha1 {
144138
/// Creates a new hasher.
145139
#[inline]
146-
#[allow(deprecated)] // https://github.com/rust-lang/rust/issues/63566
147140
#[must_use]
148141
pub fn new() -> Sha1 {
149142
unsafe {
@@ -165,7 +158,6 @@ impl Sha1 {
165158

166159
/// Returns the hash of the data.
167160
#[inline]
168-
#[allow(deprecated)] // https://github.com/rust-lang/rust/issues/63566
169161
#[must_use]
170162
pub fn finish(mut self) -> [u8; 20] {
171163
unsafe {
@@ -190,7 +182,6 @@ impl Default for Sha224 {
190182
impl Sha224 {
191183
/// Creates a new hasher.
192184
#[inline]
193-
#[allow(deprecated)] // https://github.com/rust-lang/rust/issues/63566
194185
#[must_use]
195186
pub fn new() -> Sha224 {
196187
unsafe {
@@ -212,7 +203,6 @@ impl Sha224 {
212203

213204
/// Returns the hash of the data.
214205
#[inline]
215-
#[allow(deprecated)] // https://github.com/rust-lang/rust/issues/63566
216206
#[must_use]
217207
pub fn finish(mut self) -> [u8; 28] {
218208
unsafe {
@@ -237,7 +227,6 @@ impl Default for Sha256 {
237227
impl Sha256 {
238228
/// Creates a new hasher.
239229
#[inline]
240-
#[allow(deprecated)] // https://github.com/rust-lang/rust/issues/63566
241230
#[must_use]
242231
pub fn new() -> Sha256 {
243232
unsafe {
@@ -259,7 +248,6 @@ impl Sha256 {
259248

260249
/// Returns the hash of the data.
261250
#[inline]
262-
#[allow(deprecated)] // https://github.com/rust-lang/rust/issues/63566
263251
#[must_use]
264252
pub fn finish(mut self) -> [u8; 32] {
265253
unsafe {
@@ -284,7 +272,6 @@ impl Default for Sha384 {
284272
impl Sha384 {
285273
/// Creates a new hasher.
286274
#[inline]
287-
#[allow(deprecated)] // https://github.com/rust-lang/rust/issues/63566
288275
#[must_use]
289276
pub fn new() -> Sha384 {
290277
unsafe {
@@ -306,7 +293,6 @@ impl Sha384 {
306293

307294
/// Returns the hash of the data.
308295
#[inline]
309-
#[allow(deprecated)] // https://github.com/rust-lang/rust/issues/63566
310296
#[must_use]
311297
pub fn finish(mut self) -> [u8; 48] {
312298
unsafe {
@@ -331,7 +317,6 @@ impl Default for Sha512 {
331317
impl Sha512 {
332318
/// Creates a new hasher.
333319
#[inline]
334-
#[allow(deprecated)] // https://github.com/rust-lang/rust/issues/63566
335320
#[must_use]
336321
pub fn new() -> Sha512 {
337322
unsafe {
@@ -353,7 +338,6 @@ impl Sha512 {
353338

354339
/// Returns the hash of the data.
355340
#[inline]
356-
#[allow(deprecated)] // https://github.com/rust-lang/rust/issues/63566
357341
#[must_use]
358342
pub fn finish(mut self) -> [u8; 64] {
359343
unsafe {
@@ -378,7 +362,6 @@ impl Default for Sha512_256 {
378362
impl Sha512_256 {
379363
/// Creates a new hasher.
380364
#[inline]
381-
#[allow(deprecated)] // https://github.com/rust-lang/rust/issues/63566
382365
#[must_use]
383366
pub fn new() -> Sha512_256 {
384367
unsafe {
@@ -400,7 +383,6 @@ impl Sha512_256 {
400383

401384
/// Returns the hash of the data.
402385
#[inline]
403-
#[allow(deprecated)] // https://github.com/rust-lang/rust/issues/63566
404386
#[must_use]
405387
pub fn finish(mut self) -> [u8; 32] {
406388
unsafe {

0 commit comments

Comments
 (0)