From 34e6b7b9b3d05e084f6e0fa6a90686a6dda27633 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=90=91=E5=A4=9C?= Date: Tue, 13 Feb 2024 22:07:00 +0800 Subject: [PATCH] style(packet): refactor super into crate:: --- src/models/packet.rs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/models/packet.rs b/src/models/packet.rs index 40e68bd..a5d515a 100644 --- a/src/models/packet.rs +++ b/src/models/packet.rs @@ -1,12 +1,10 @@ //! # Oblivion Packets Encapsulation -use crate::utils::gear::Socket; - use crate::exceptions::OblivionException; - -use super::super::utils::decryptor::decrypt_bytes; -use super::super::utils::encryptor::{encrypt_bytes, encrypt_plaintext}; -use super::super::utils::generator::{generate_random_salt, generate_shared_key}; -use super::super::utils::parser::length; +use crate::utils::decryptor::decrypt_bytes; +use crate::utils::encryptor::{encrypt_bytes, encrypt_plaintext}; +use crate::utils::gear::Socket; +use crate::utils::generator::{generate_random_salt, generate_shared_key}; +use crate::utils::parser::length; use p256::ecdh::EphemeralSecret; use p256::PublicKey;