refactor: remove redundant pub

This commit is contained in:
Ryan 2025-03-26 17:07:27 -04:00
parent e3d3e7fe5d
commit 170c1194ef
Signed by: ErrorNoInternet
GPG Key ID: 2486BFB7B1E6A4A3
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
type ListenerMap = Arc<RwLock<HashMap<String, Vec<(String, Function)>>>>; type ListenerMap = Arc<RwLock<HashMap<String, Vec<(String, Function)>>>>;
#[derive(Default, Clone, Component)] #[derive(Default, Clone, Component)]
pub struct State { struct State {
lua: Arc<Lua>, lua: Arc<Lua>,
event_listeners: ListenerMap, event_listeners: ListenerMap,
commands: Arc<CommandDispatcher<Mutex<CommandSource>>>, commands: Arc<CommandDispatcher<Mutex<CommandSource>>>,

View File

@ -17,7 +17,7 @@ use verification::{on_device_key_verification_request, on_room_message_verificat
use crate::{State, lua::matrix::client::Client as LuaClient}; use crate::{State, lua::matrix::client::Client as LuaClient};
#[derive(Clone)] #[derive(Clone)]
pub struct Context { struct Context {
state: State, state: State,
name: String, name: String,
} }