Skip to content

Commit aa22d56

Browse files
committed
Remove deadcode warning when all features are disabled
1 parent d398e46 commit aa22d56

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ 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.1.3] - 2025-08-18
8+
### Fixed
9+
- Remove deadcode warning when all features are disabled
10+
711
## [0.1.2] - 2025-08-16
812
### Fixed
913
- Remove unecessary async-trait usage/dependency

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ authors = ["killzoner"]
33
edition = "2024"
44
name = "pprof_hyper_server"
55
resolver = "3"
6-
version = "0.1.2"
6+
version = "0.1.3"
77

88
description = "A minimal pprof server implementation using hyper without runtime dependency"
99
documentation = "https://docs.rs/pprof_hyper_server"

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ const NOT_FOUND: &[u8] = "Not Found".as_bytes();
2828

2929
/// Config allows customizing global pprof config.
3030
#[derive(Default, Clone, Debug)]
31+
#[allow(dead_code)]
3132
pub struct Config<'a> {
3233
/// Defaults to pprof_cpu::PPROF_BLOCKLIST.
3334
pub pprof_blocklist: Option<&'a [&'a str]>,
@@ -46,6 +47,7 @@ mod pprof_cpu {
4647

4748
struct Task<'a> {
4849
client: Async<TcpStream>,
50+
#[allow(dead_code)]
4951
config: Arc<Config<'a>>,
5052
}
5153

0 commit comments

Comments
 (0)