fix key is not set bug

This commit is contained in:
alex 2026-03-18 16:09:59 +08:00
parent 321146f6ac
commit 33a995e7dd

View File

@ -154,7 +154,7 @@ pub struct AesEncryptor {
impl AesEncryptor {
pub fn new(key: Vec<u8>) -> Self {
Self {
key: Vec::new(),
key,
is_setted: true,
}
}