fix: resolve clippy warnings

This commit is contained in:
Vladislav Yaroslavlev 2026-02-18 02:59:57 +03:00
parent 73b40d386a
commit 9c4c3eaa29
No known key found for this signature in database
GPG Key ID: C67C785A19F5503F
4 changed files with 2 additions and 5 deletions

View File

@ -5,5 +5,5 @@ pub mod hash;
pub mod random;
pub use aes::{AesCtr, AesCbc};
pub use hash::{sha256, sha256_hmac, sha1, md5, crc32, derive_middleproxy_keys, build_middleproxy_prekey};
pub use hash::{sha256, sha256_hmac, crc32, derive_middleproxy_keys, build_middleproxy_prekey};
pub use random::SecureRandom;

View File

@ -1,6 +1,6 @@
//! Protocol constants and datacenter addresses
use std::net::{IpAddr, Ipv4Addr, Ipv6Addr};
use std::net::{IpAddr, Ipv4Addr};
use std::sync::LazyLock;
// ============= Telegram Datacenters =============
@ -202,7 +202,6 @@ pub static RESERVED_NONCE_CONTINUES: &[[u8; 4]] = &[
// ============= RPC Constants (for Middle Proxy) =============
/// RPC Proxy Request
/// RPC Flags (from Erlang mtp_rpc.erl)
pub const RPC_FLAG_NOT_ENCRYPTED: u32 = 0x2;
pub const RPC_FLAG_HAS_AD_TAG: u32 = 0x8;

View File

@ -2,7 +2,6 @@
use zeroize::Zeroize;
use crate::crypto::{sha256, AesCtr};
use crate::error::Result;
use super::constants::*;
/// Obfuscation parameters from handshake

View File

@ -5,7 +5,6 @@
//! actually carries MTProto authentication data.
use crate::crypto::{sha256_hmac, SecureRandom};
use crate::error::{ProxyError, Result};
use super::constants::*;
use std::time::{SystemTime, UNIX_EPOCH};
use num_bigint::BigUint;