From 1c3bbd4bf242ef92b9a2e35392ea72f86e4ceb41 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Mon, 1 May 2023 09:31:42 +1000 Subject: [PATCH] internals: Remove attribution from all files As we did for the `bitcoin` crate, remove attribution from all files in the `internals` crate. While we are at it add an SPDX line to the few files missing it, whether this license nonsense is even needed is left as an argument for another day. Justification: Currently we have a mishmash of attribution lines accompanying the SPDX identifier. These lines are basically meaningless because: - The date is often wrong - The original author attributed is not the only contributor to a file - The term "rust bitcoin developers" is basically just noise Just remove all the attribution lines and be done with it. --- internals/src/error.rs | 1 - internals/src/hex/buf_encoder.rs | 2 ++ internals/src/hex/display.rs | 2 ++ internals/src/hex/mod.rs | 2 ++ internals/src/lib.rs | 1 - internals/src/macros.rs | 2 ++ 6 files changed, 8 insertions(+), 2 deletions(-) diff --git a/internals/src/error.rs b/internals/src/error.rs index 2f213377..ff596734 100644 --- a/internals/src/error.rs +++ b/internals/src/error.rs @@ -1,4 +1,3 @@ -// Written by the Rust Bitcoin developers. // SPDX-License-Identifier: CC0-1.0 //! # Error diff --git a/internals/src/hex/buf_encoder.rs b/internals/src/hex/buf_encoder.rs index d72cdea1..2d6793d9 100644 --- a/internals/src/hex/buf_encoder.rs +++ b/internals/src/hex/buf_encoder.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: CC0-1.0 + //! Implements a buffered encoder. //! //! The main type of this module is [`BufEncoder`] which provides buffered hex encoding. Such is diff --git a/internals/src/hex/display.rs b/internals/src/hex/display.rs index 81450d00..6a75864a 100644 --- a/internals/src/hex/display.rs +++ b/internals/src/hex/display.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: CC0-1.0 + //! Helpers for displaying bytes as hex strings. //! //! This module provides a trait for displaying things as hex as well as an implementation for diff --git a/internals/src/hex/mod.rs b/internals/src/hex/mod.rs index 0d55ec8e..54fd0465 100644 --- a/internals/src/hex/mod.rs +++ b/internals/src/hex/mod.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: CC0-1.0 + //! Helpers for encoding bytes as hex strings. pub mod buf_encoder; diff --git a/internals/src/lib.rs b/internals/src/lib.rs index 75b2ddf0..9e794aed 100644 --- a/internals/src/lib.rs +++ b/internals/src/lib.rs @@ -1,4 +1,3 @@ -// Written by the Rust Bitcoin developers. // SPDX-License-Identifier: CC0-1.0 //! # Rust Bitcoin Internal diff --git a/internals/src/macros.rs b/internals/src/macros.rs index 2df33c92..799730f0 100644 --- a/internals/src/macros.rs +++ b/internals/src/macros.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: CC0-1.0 + //! Various macros used by the Rust Bitcoin ecosystem. //!