From ec92dfee648cd5ae5ba99e54527a58a77535337f Mon Sep 17 00:00:00 2001 From: nyx Date: Wed, 16 Oct 2024 21:04:22 -0400 Subject: [PATCH] run fmt --- src/gui.rs | 21 +++++++++++++++------ src/main.rs | 4 ++-- 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/src/gui.rs b/src/gui.rs index bba82a7..dfc4d5d 100644 --- a/src/gui.rs +++ b/src/gui.rs @@ -1,11 +1,13 @@ -use gtk::{prelude::*, Application, ApplicationWindow, Button, FlowBox, Image, ScrolledWindow, gio}; +use gtk::{ + gio, prelude::*, Application, ApplicationWindow, Button, FlowBox, Image, ScrolledWindow, +}; +use shellexpand; use std::cell::RefCell; +use std::collections::HashMap; use std::fs; +use std::io::Read; use std::path::PathBuf; use std::rc::Rc; -use shellexpand; -use std::io::Read; -use std::collections::HashMap; use std::sync::{Arc, Mutex}; const CONFIG_FILE: &str = "~/.config/hyprwall/config.ini"; @@ -84,7 +86,11 @@ pub fn build_ui(app: &Application) { window.present(); } -fn choose_folder(window: &ApplicationWindow, flowbox: &Rc>, cache: &Arc>) { +fn choose_folder( + window: &ApplicationWindow, + flowbox: &Rc>, + cache: &Arc>, +) { let dialog = gtk::FileChooserDialog::new( Some("Change wallpaper folder"), Some(window), @@ -127,7 +133,10 @@ fn load_images(folder: &PathBuf, flowbox: &Rc>, cache: &Arc> = Mutex::new(Vec::new());