diff --git a/src/app/browser.rs b/src/app/browser.rs index 84c0468c..b21b540a 100644 --- a/src/app/browser.rs +++ b/src/app/browser.rs @@ -10,11 +10,11 @@ use widget::Widget; use window::Window; use crate::Profile; -use adw::{prelude::AdwDialogExt, AboutDialog}; +use adw::{prelude::AdwDialogExt, AboutDialog, Application}; use gtk::{ gio::{Cancellable, File}, - prelude::{GtkWindowExt, IsA}, - Application, FileLauncher, + prelude::GtkWindowExt, + FileLauncher, }; use sqlite::Transaction; use std::rc::Rc; @@ -168,7 +168,7 @@ impl Browser { Ok(()) } - pub fn init(&self, application: Option<&impl IsA>) -> &Self { + pub fn init(&self, application: Option<&Application>) -> &Self { // Assign browser window to this application self.widget.application_window.set_application(application); // @TODO diff --git a/src/main.rs b/src/main.rs index 48cd3423..213b2f66 100644 --- a/src/main.rs +++ b/src/main.rs @@ -3,9 +3,8 @@ mod profile; mod tool; use app::App; -use profile::Profile; - use gtk::glib::ExitCode; +use profile::Profile; use std::rc::Rc; fn main() -> ExitCode {