diff --git a/server/src/steel/server/execution.rs b/server/src/steel/server/execution.rs index 4cc14c9..abb8701 100644 --- a/server/src/steel/server/execution.rs +++ b/server/src/steel/server/execution.rs @@ -2,10 +2,9 @@ use steel::steel_vm::engine::Engine; use steel::steel_vm::register_fn::RegisterFn; use steel::rvals::SteelVal; -use super::functions::{SteelContext, FunctionError}; +use super::functions::SteelContext; use sqlx::PgPool; use std::sync::Arc; -use std::collections::HashMap; use thiserror::Error; #[derive(Debug)] @@ -28,7 +27,7 @@ pub enum ExecutionError { pub fn execute_script( script: String, target_type: &str, - db_pool: Arc, + _db_pool: Arc, // Passed to the SteelContext context: SteelContext, // Contains row_data, profile_id, etc. ) -> Result { let mut vm = Engine::new(); diff --git a/server/src/steel/server/functions.rs b/server/src/steel/server/functions.rs index f72b27d..04c3ef2 100644 --- a/server/src/steel/server/functions.rs +++ b/server/src/steel/server/functions.rs @@ -1,11 +1,9 @@ // src/steel/server/functions.rs use steel::rvals::SteelVal; -use sqlx::{PgPool, FromRow}; +use sqlx::PgPool; use std::collections::HashMap; use std::sync::Arc; use thiserror::Error; -use serde_json::Value; -use sqlx::postgres::PgRow; use sqlx::Row; #[derive(Debug, Error)]