making linters happy
Some checks failed
CI / Rust Blocking Checks (push) Failing after 22s
CI / Web Blocking Checks (push) Failing after 26s
CI / Security Blocking Checks (push) Successful in 9s
CI / Web Advisory Checks (push) Successful in 32s
CI / Security Advisory Checks (push) Has been cancelled
Some checks failed
CI / Rust Blocking Checks (push) Failing after 22s
CI / Web Blocking Checks (push) Failing after 26s
CI / Security Blocking Checks (push) Successful in 9s
CI / Web Advisory Checks (push) Successful in 32s
CI / Security Advisory Checks (push) Has been cancelled
This commit is contained in:
@@ -35,6 +35,7 @@ impl NativeRuntime {
|
||||
}
|
||||
|
||||
/// Execute a native binary with parameters and environment variables
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
async fn execute_binary(
|
||||
&self,
|
||||
binary_path: PathBuf,
|
||||
|
||||
@@ -117,7 +117,7 @@ pub fn create_parameter_file(
|
||||
) -> Result<NamedTempFile, RuntimeError> {
|
||||
let formatted = format_parameters(parameters, format)?;
|
||||
|
||||
let mut temp_file = NamedTempFile::new().map_err(|e| RuntimeError::IoError(e))?;
|
||||
let mut temp_file = NamedTempFile::new().map_err(RuntimeError::IoError)?;
|
||||
|
||||
// Set restrictive permissions (owner read-only)
|
||||
#[cfg(unix)]
|
||||
@@ -126,20 +126,20 @@ pub fn create_parameter_file(
|
||||
let mut perms = temp_file
|
||||
.as_file()
|
||||
.metadata()
|
||||
.map_err(|e| RuntimeError::IoError(e))?
|
||||
.map_err(RuntimeError::IoError)?
|
||||
.permissions();
|
||||
perms.set_mode(0o400); // Read-only for owner
|
||||
temp_file
|
||||
.as_file()
|
||||
.set_permissions(perms)
|
||||
.map_err(|e| RuntimeError::IoError(e))?;
|
||||
.map_err(RuntimeError::IoError)?;
|
||||
}
|
||||
|
||||
temp_file
|
||||
.write_all(formatted.as_bytes())
|
||||
.map_err(|e| RuntimeError::IoError(e))?;
|
||||
.map_err(RuntimeError::IoError)?;
|
||||
|
||||
temp_file.flush().map_err(|e| RuntimeError::IoError(e))?;
|
||||
temp_file.flush().map_err(RuntimeError::IoError)?;
|
||||
|
||||
debug!(
|
||||
"Created parameter file at {:?} with format {:?}",
|
||||
|
||||
@@ -83,6 +83,7 @@ pub async fn execute_streaming(
|
||||
/// * `max_stderr_bytes` - Maximum stderr size before truncation
|
||||
/// * `output_format` - How to parse stdout (Text, Json, Yaml, Jsonl)
|
||||
/// * `cancel_token` - Optional cancellation token for graceful process termination
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
pub async fn execute_streaming_cancellable(
|
||||
mut cmd: Command,
|
||||
secrets: &HashMap<String, String>,
|
||||
|
||||
@@ -61,6 +61,7 @@ impl ShellRuntime {
|
||||
}
|
||||
|
||||
/// Execute with streaming and bounded log collection
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
async fn execute_with_streaming(
|
||||
&self,
|
||||
mut cmd: Command,
|
||||
@@ -383,6 +384,7 @@ impl ShellRuntime {
|
||||
}
|
||||
|
||||
/// Execute shell script from file
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
async fn execute_shell_file(
|
||||
&self,
|
||||
script_path: PathBuf,
|
||||
|
||||
Reference in New Issue
Block a user