Skip to content

Commit 6c8370f

Browse files
authored
block-padding: add 'static bound to Padding (#1248)
1 parent 11783c8 commit 6c8370f

File tree

4 files changed

+18
-12
lines changed

4 files changed

+18
-12
lines changed

Cargo.lock

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

block-padding/CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7-
## 0.4.1 (2025-10-06)
7+
## 0.4.2 (2025-11-26)
8+
### Changed
9+
- Added `'static` bound to `Padding` trait ([#1248])
10+
11+
[#1248]: https://github.com/RustCrypto/utils/pull/1248
12+
13+
## 0.4.1 (2025-10-06) [YANKED]
814
### Added
915
- `PaddedData` enum ([#1227])
1016

block-padding/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "block-padding"
3-
version = "0.4.1"
3+
version = "0.4.2"
44
authors = ["RustCrypto Developers"]
55
edition = "2024"
66
rust-version = "1.85"

block-padding/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use core::fmt;
1313
use hybrid_array::{Array, ArraySize};
1414

1515
/// Trait for message padding algorithms.
16-
pub trait Padding {
16+
pub trait Padding: 'static {
1717
/// Pads `block` filled with data up to `pos` (i.e the message length
1818
/// stored in `block` is equal to `pos`).
1919
///

0 commit comments

Comments
 (0)