Skip to content

Commit

Permalink
Cargo fmt & clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Ngo Iok Ui committed May 8, 2021
1 parent d8d94cc commit 06d95ad
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changes/menu-flag.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"tao": patch
---

Add menu feature flag and rename status bar to system tray.
4 changes: 2 additions & 2 deletions src/platform_impl/linux/event_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ use gio::{prelude::*, Cancellable};
use glib::{source::idle_add_local, Continue, MainContext};
use gtk::{prelude::*, AboutDialog, ApplicationWindow, Inhibit};

#[cfg(feature = "menu")]
use gtk::{Clipboard, Entry};
#[cfg(feature = "menu")]
use glib::Cast;
#[cfg(feature = "menu")]
use gtk::{Clipboard, Entry};

use crate::{
dpi::{PhysicalPosition, PhysicalSize},
Expand Down
3 changes: 2 additions & 1 deletion src/platform_impl/linux/system_tray.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use crate::{
error::OsError, platform_impl::EventLoopWindowTarget, platform::system_tray::SystemTray as RootSystemTray,
error::OsError, platform::system_tray::SystemTray as RootSystemTray,
platform_impl::EventLoopWindowTarget,
};

pub struct SystemTray {}
Expand Down

0 comments on commit 06d95ad

Please sign in to comment.