From 52bea9f6a4c09b37b9ba9c05d396a2c61b689aad Mon Sep 17 00:00:00 2001 From: "jamil.lambert" Date: Wed, 22 May 2024 12:00:25 +0100 Subject: [PATCH] Removed //! spare line at end of headers Some of the headers had a //! at the end but most didn't. They have all been removed in hashes/src/ to make the files consistent --- hashes/src/hash160.rs | 1 - hashes/src/hmac.rs | 1 - hashes/src/impls.rs | 1 - hashes/src/ripemd160.rs | 1 - hashes/src/serde_macros.rs | 1 - hashes/src/sha1.rs | 1 - hashes/src/sha256.rs | 1 - hashes/src/sha256d.rs | 1 - hashes/src/sha256t.rs | 1 - hashes/src/sha512.rs | 1 - hashes/src/siphash24.rs | 1 - 11 files changed, 11 deletions(-) diff --git a/hashes/src/hash160.rs b/hashes/src/hash160.rs index 21697f79c..df1efc922 100644 --- a/hashes/src/hash160.rs +++ b/hashes/src/hash160.rs @@ -6,7 +6,6 @@ // contents here as CC0. //! HASH160 (SHA256 then RIPEMD160) implementation. -//! use core::ops::Index; use core::slice::SliceIndex; diff --git a/hashes/src/hmac.rs b/hashes/src/hmac.rs index 53be1959e..90745c6a6 100644 --- a/hashes/src/hmac.rs +++ b/hashes/src/hmac.rs @@ -6,7 +6,6 @@ // contents here as CC0. //! Hash-based Message Authentication Code (HMAC). -//! use core::{convert, fmt, str}; diff --git a/hashes/src/impls.rs b/hashes/src/impls.rs index 3f093b831..340161f88 100644 --- a/hashes/src/impls.rs +++ b/hashes/src/impls.rs @@ -3,7 +3,6 @@ //! `std` / `io` Impls. //! //! Implementations of traits defined in `std` / `io` and not in `core`. -//! use bitcoin_io::impl_write; diff --git a/hashes/src/ripemd160.rs b/hashes/src/ripemd160.rs index 7c06e4294..0a2b2d7cc 100644 --- a/hashes/src/ripemd160.rs +++ b/hashes/src/ripemd160.rs @@ -1,7 +1,6 @@ // SPDX-License-Identifier: CC0-1.0 //! RIPEMD160 implementation. -//! use core::cmp; use core::ops::Index; diff --git a/hashes/src/serde_macros.rs b/hashes/src/serde_macros.rs index 3646af399..4a0801a8c 100644 --- a/hashes/src/serde_macros.rs +++ b/hashes/src/serde_macros.rs @@ -1,7 +1,6 @@ // SPDX-License-Identifier: CC0-1.0 //! Macros for serde trait implementations, and supporting code. -//! /// Functions used by serde impls of all hashes. #[cfg(feature = "serde")] diff --git a/hashes/src/sha1.rs b/hashes/src/sha1.rs index 8f3a8cc11..c2584f9ca 100644 --- a/hashes/src/sha1.rs +++ b/hashes/src/sha1.rs @@ -1,7 +1,6 @@ // SPDX-License-Identifier: CC0-1.0 //! SHA1 implementation. -//! use core::cmp; use core::ops::Index; diff --git a/hashes/src/sha256.rs b/hashes/src/sha256.rs index 93bbd01e9..8c26ff9ec 100644 --- a/hashes/src/sha256.rs +++ b/hashes/src/sha256.rs @@ -1,7 +1,6 @@ // SPDX-License-Identifier: CC0-1.0 //! SHA256 implementation. -//! #[cfg(all(feature = "std", target_arch = "x86"))] use core::arch::x86::*; diff --git a/hashes/src/sha256d.rs b/hashes/src/sha256d.rs index 3628a8783..3d3ad5b9b 100644 --- a/hashes/src/sha256d.rs +++ b/hashes/src/sha256d.rs @@ -1,7 +1,6 @@ // SPDX-License-Identifier: CC0-1.0 //! SHA256d implementation (double SHA256). -//! use core::ops::Index; use core::slice::SliceIndex; diff --git a/hashes/src/sha256t.rs b/hashes/src/sha256t.rs index 593b9fd6f..375154e97 100644 --- a/hashes/src/sha256t.rs +++ b/hashes/src/sha256t.rs @@ -1,7 +1,6 @@ // SPDX-License-Identifier: CC0-1.0 //! SHA256t implementation (tagged SHA256). -//! use core::cmp; use core::marker::PhantomData; diff --git a/hashes/src/sha512.rs b/hashes/src/sha512.rs index 3d1f09677..904bb4d65 100644 --- a/hashes/src/sha512.rs +++ b/hashes/src/sha512.rs @@ -1,7 +1,6 @@ // SPDX-License-Identifier: CC0-1.0 //! SHA512 implementation. -//! use core::cmp; use core::ops::Index; diff --git a/hashes/src/siphash24.rs b/hashes/src/siphash24.rs index 81434aef5..048ab94ff 100644 --- a/hashes/src/siphash24.rs +++ b/hashes/src/siphash24.rs @@ -1,7 +1,6 @@ // SPDX-License-Identifier: CC0-1.0 //! SipHash 2-4 implementation. -//! use core::ops::Index; use core::slice::SliceIndex;