mirror of
https://github.com/telemt/telemt.git
synced 2026-06-19 02:00:08 +07:00
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:
@@ -7,6 +7,7 @@
|
|||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
|
|
||||||
use crate::crypto::{sha256_hmac, SecureRandom};
|
use crate::crypto::{sha256_hmac, SecureRandom};
|
||||||
|
#[cfg(test)]
|
||||||
use crate::error::ProxyError;
|
use crate::error::ProxyError;
|
||||||
use super::constants::*;
|
use super::constants::*;
|
||||||
use std::time::{SystemTime, UNIX_EPOCH};
|
use std::time::{SystemTime, UNIX_EPOCH};
|
||||||
|
|||||||
Reference in New Issue
Block a user