From 79fe64396f7937ec6f28cb1e2bbe70acfb97edc9 Mon Sep 17 00:00:00 2001 From: Penelope Gwen Date: Fri, 19 Sep 2025 23:51:30 -0700 Subject: [PATCH] fs write import --- src/lib/lock.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/lock.rs b/src/lib/lock.rs index 70c0c84..43fa809 100644 --- a/src/lib/lock.rs +++ b/src/lib/lock.rs @@ -1,4 +1,4 @@ -use std::{env::consts, fs::{self, exists, DirBuilder}, io, ops::Sub, path::{Path, PathBuf}}; +use std::{env::consts, fs::{self, exists, DirBuilder, write}, io, ops::Sub, path::{Path, PathBuf}}; use walkdir::WalkDir; use image::{imageops::GaussianBlurParameters, DynamicImage}; @@ -88,7 +88,7 @@ pub fn lock_screen(config: &Config, mut sway_connection: Connection, force_bg_re } } let new_json = json!(wp_hash_array); - let _ = std::fs::write::(hashes_json_path, new_json.to_string()); + let _ = write(hashes_json_path, new_json.to_string()); let mut gtklock_command = "exec echo gtklock".to_owned(); for a in gtklock_args { gtklock_command = gtklock_command + " " + &a;