mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-09-02 17:15:43 +00:00
chore: update Rust to 2024 edition (#2066)
This commit is contained in:
@@ -137,7 +137,7 @@ impl Encryptor for AesGcmCipher {
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use crate::{
|
||||
peers::encrypt::{aes_gcm::AesGcmCipher, Encryptor},
|
||||
peers::encrypt::{Encryptor, aes_gcm::AesGcmCipher},
|
||||
tunnel::packet_def::{StandardAeadTail, ZCPacket},
|
||||
};
|
||||
use zerocopy::FromBytes;
|
||||
|
||||
@@ -155,7 +155,7 @@ impl Encryptor for RingCipher {
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use crate::{
|
||||
peers::encrypt::{ring::RingCipher, Encryptor},
|
||||
peers::encrypt::{Encryptor, ring::RingCipher},
|
||||
tunnel::packet_def::{StandardAeadTail, ZCPacket},
|
||||
};
|
||||
use zerocopy::FromBytes;
|
||||
|
||||
@@ -61,7 +61,7 @@ impl Encryptor for XorCipher {
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use crate::{
|
||||
peers::encrypt::{xor::XorCipher, Encryptor},
|
||||
peers::encrypt::{Encryptor, xor::XorCipher},
|
||||
tunnel::packet_def::ZCPacket,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user