Skip to content

Commit

Permalink
🧹 rearrange imports
Browse files Browse the repository at this point in the history
  • Loading branch information
vnepogodin committed Aug 5, 2024
1 parent ce72784 commit 3425a0f
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 15 deletions.
10 changes: 5 additions & 5 deletions src/application.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
use crate::config::{APP_ID, PKGDATADIR, VERSION};
use crate::widgets::MainWindow;

use std::path::Path;

use gtk::gio;
use gtk::glib::{self, clone, WeakRef};
use gtk::prelude::*;
use gtk::subclass::prelude::*;
use once_cell::sync::OnceCell;

use std::path::Path;

use crate::config::{APP_ID, PKGDATADIR, VERSION};
use crate::widgets::MainWindow;
/*
mod imp {
use super::*;
Expand Down
3 changes: 2 additions & 1 deletion src/application_browser.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
use crate::alpm_helper::*;
use crate::{fl, utils};

use std::sync::Mutex;

use gtk::gio::prelude::*;
use gtk::prelude::{
BoxExt, ButtonExt, CellRendererExt, CellRendererTextExt, CellRendererToggleExt, ComboBoxExt,
Expand All @@ -10,7 +12,6 @@ use gtk::prelude::{
};

use once_cell::sync::Lazy;
use std::sync::Mutex;

#[derive(Debug)]
pub struct ApplicationBrowser {
Expand Down
16 changes: 8 additions & 8 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,24 @@ mod utils;

use config::{APP_ID, PROFILE, VERSION};
use data_types::*;
use gtk::glib::GString;
use gtk::{gdk, glib, Builder, HeaderBar, Window};
use i18n_embed::DesktopLanguageRequester;
use once_cell::sync::Lazy;
use utils::*;

use std::collections::HashMap;
use std::path::Path;
use std::sync::{Arc, Mutex};
use unic_langid::LanguageIdentifier;
use utils::*;
use std::{fs, str};

use gtk::gio::prelude::*;
use gtk::prelude::*;

use gtk::gdk_pixbuf::Pixbuf;

use gtk::glib::GString;
use gtk::{gdk, glib, Builder, HeaderBar, Window};
use i18n_embed::DesktopLanguageRequester;
use once_cell::sync::Lazy;
use serde_json::json;
use std::{fs, str};
use subprocess::Exec;
use unic_langid::LanguageIdentifier;

const RESPREFIX: &str = "/org/cachyos/hello";

Expand Down
3 changes: 2 additions & 1 deletion src/utils.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
use gtk::prelude::*;
use std::fs::File;
use std::path::Path;
use std::{fs, slice, str};

use gtk::prelude::*;

use subprocess::{Exec, Redirection};

#[derive(Debug)]
Expand Down

0 comments on commit 3425a0f

Please sign in to comment.