refactor: clean up import paths

This commit is contained in:
2025-03-15 15:07:26 -04:00
parent e70b8eca84
commit 41b3375749
6 changed files with 14 additions and 14 deletions
+2 -2
View File
@@ -1,9 +1,9 @@
use mlua::UserData;
use mlua::{UserData, UserDataFields};
pub struct AesKey(pub ncr::AesKey);
impl UserData for AesKey {
fn add_fields<F: mlua::UserDataFields<Self>>(f: &mut F) {
fn add_fields<F: UserDataFields<Self>>(f: &mut F) {
f.add_field_method_get("base64", |_, this| Ok(this.0.encode_base64()));
f.add_field_method_get("bytes", |_, this| Ok(this.0.as_ref().to_vec()));
}