fix: add #[cfg(test)] to unused ProxyError import

The ProxyError import in tls.rs is only used in test code
(validate_server_hello_structure function), so guard it with
#[cfg(test)] to eliminate the unused import warning.
This commit is contained in:
Vladislav Yaroslavlev 2026-02-24 04:20:30 +03:00
parent 3d3ddd37d7
commit d6214c6bbf
No known key found for this signature in database
GPG Key ID: C67C785A19F5503F
1 changed files with 1 additions and 0 deletions

View File

@ -7,6 +7,7 @@
#![allow(dead_code)]
use crate::crypto::{sha256_hmac, SecureRandom};
#[cfg(test)]
use crate::error::ProxyError;
use super::constants::*;
use std::time::{SystemTime, UNIX_EPOCH};