Skip to content

Commit 4463d43

Browse files
committed
#143 fix: suppress unused variable warnings in debug-only logger
1 parent a62f80f commit 4463d43

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [0.2.16] - 2025-10-25
11+
### Fixed
12+
- Made `use_telegram_context` Yew hook reactive to properly handle cases when
13+
the Telegram SDK initializes after component mount. The hook now uses
14+
`requestAnimationFrame` to efficiently poll for context availability and
15+
automatically updates when the context becomes ready.
16+
1017
## [0.2.15] - 2025-10-05
1118
### Fixed
1219
- Restored compatibility with the latest nightly toolchains by probing support

src/logger.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
// SPDX-FileCopyrightText: 2025 RAprogramm <[email protected]>
22
// SPDX-License-Identifier: MIT
33

4+
#[cfg(debug_assertions)]
45
use web_sys::console;
56

67
/// Internal helper for styled log output.
8+
#[cfg_attr(not(debug_assertions), allow(unused_variables))]
79
fn styled_log(level: &str, emoji: &str, color: &str, msg: &str) {
810
#[cfg(debug_assertions)]
911
{

0 commit comments

Comments
 (0)