Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file.

## [Unreleased]

## [0.24.5] - 2025-10-21

### Fixed
- Replaced deprecated `criterion::black_box` usage in the error path benchmarks
with `std::hint::black_box` so benches compile cleanly under `-D warnings`.

## [0.24.4] - 2025-10-20

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "masterror"
version = "0.24.4"
version = "0.24.5"
rust-version = "1.90"
edition = "2024"
license = "MIT OR Apache-2.0"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ The build script keeps the full feature snippet below in sync with

~~~toml
[dependencies]
masterror = { version = "0.24.4", default-features = false }
masterror = { version = "0.24.5", default-features = false }
# or with features:
# masterror = { version = "0.24.4", features = [
# masterror = { version = "0.24.5", features = [
# "std", "axum", "actix", "openapi",
# "serde_json", "tracing", "metrics", "backtrace",
# "sqlx", "sqlx-migrate", "reqwest", "redis",
Expand Down
7 changes: 5 additions & 2 deletions benches/error_paths.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@ use core::{
net::{IpAddr, Ipv4Addr},
time::Duration
};
use std::fmt::{Display, Formatter, Result as FmtResult};
use std::{
fmt::{Display, Formatter, Result as FmtResult},
hint::black_box
};

use criterion::{BatchSize, Criterion, black_box, criterion_group, criterion_main};
use criterion::{BatchSize, Criterion, criterion_group, criterion_main};
use masterror::{AppError, AppErrorKind, Context, FieldRedaction, ProblemJson, ResultExt, field};

#[derive(Debug)]
Expand Down
Loading