Skip to content

Commit

Permalink
Cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Davidoc26 committed Jun 2, 2023
1 parent 5e1fdc5 commit 7d5a2ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 4 additions & 1 deletion src/application.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@ impl WallpaperSelectorApplication {
pub fn new() -> Self {
glib::Object::builder()
.property("application-id", APP_ID)
.property("resource-base-path", "/io/github/davidoc26/wallpaper_selector/")
.property(
"resource-base-path",
"/io/github/davidoc26/wallpaper_selector/",
)
.build()
}

Expand Down
6 changes: 2 additions & 4 deletions src/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ use std::sync::Arc;

use adw::gdk::Texture;
use adw::gio::ListStore;
use adw::glib::{clone, Object};
use adw::glib::MainContext;
use adw::glib::{clone, Object};
use adw::Toast;
use adw::{gio, glib};
use ashpd::desktop::open_uri::OpenDirectoryRequest;
Expand Down Expand Up @@ -112,9 +112,7 @@ glib::wrapper! {

impl WallpaperSelectorWindow {
pub fn new(app: &WallpaperSelectorApplication) -> Self {
Object::builder()
.property("application", app)
.build()
Object::builder().property("application", app).build()
}

fn load(&self, provider: Arc<Wallhaven>, sender: Arc<Sender<ProviderMessage>>) {
Expand Down

0 comments on commit 7d5a2ed

Please sign in to comment.