diff options
| author | Lucas Trzesniewski <lucas.trzesniewski@gmail.com> | 2025-08-04 14:39:12 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-04 14:39:12 +0200 |
| commit | 6d49fdb70e1be87b9c1fd4aa078c4e3421f3a46d (patch) | |
| tree | f06a6678768664f17cb49d828f368ada48a70c2b /crates/atuin-scripts/src | |
| parent | chore: update changelog (diff) | |
| download | atuin-6d49fdb70e1be87b9c1fd4aa078c4e3421f3a46d.zip | |
fix: clippy issues on Windows (#2856)
Diffstat (limited to '')
| -rw-r--r-- | crates/atuin-scripts/src/execution.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/crates/atuin-scripts/src/execution.rs b/crates/atuin-scripts/src/execution.rs index 8605d142..bb7f4227 100644 --- a/crates/atuin-scripts/src/execution.rs +++ b/crates/atuin-scripts/src/execution.rs @@ -1,7 +1,6 @@ use crate::store::script::Script; use eyre::Result; use std::collections::{HashMap, HashSet}; -use std::fs; use std::process::Stdio; use tempfile::NamedTempFile; use tokio::io::{AsyncReadExt, AsyncWriteExt, BufReader}; @@ -98,9 +97,9 @@ pub async fn execute_script_interactive( { debug!("making script executable"); use std::os::unix::fs::PermissionsExt; - let mut perms = fs::metadata(&temp_path)?.permissions(); + let mut perms = std::fs::metadata(&temp_path)?.permissions(); perms.set_mode(0o755); - fs::set_permissions(&temp_path, perms)?; + std::fs::set_permissions(&temp_path, perms)?; } // Store the temp_file to prevent it from being dropped |
