pop-os/shell-shortcuts

Pop shell shortcut compile warning

MarkosTech opened this issue · 2 comments

(1) Issue/Bug Description:

Compiling warning

(2) Steps to reproduce (if you know):

Make popshell

(3) Expected behavior:

(4) Distribution (run cat /etc/os-release):

NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
BUILD_ID=rolling
ANSI_COLOR="38;2;23;147;209"
HOME_URL="https://archlinux.org/"
DOCUMENTATION_URL="https://wiki.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://bugs.archlinux.org/"
LOGO=archlinux

(5) Gnome Shell version:

(6) Pop Shell version (run apt policy pop-shell or provide the latest commit if building locally):

(7) Where was Pop Shell installed from:

git

(8) Monitor Setup (2 x 1080p, 4K, Primary(Horizontal), Secondary(Vertical), etc):

(9) Other Installed/Enabled Extensions:

(10) Other Notes:

Compiling pop-shell-shortcuts v0.1.0 (/tmp/yaourt-tmp-markostech/aur-pop-shell-shortcuts-git/src/shell-shortcuts)
warning: unused variable: widget
--> src/app.rs:316:69
|
316 | let event_handler: Rc<dyn Fn(&gtk::EventBox, Event)> = Rc::new(|widget, event| {
| ^^^^^^ help: if this is intentional, prefix it with an underscore: _widget
|
= note: #[warn(unused_variables)] on by default

warning: 1 warning emitted

It's a warning, not an error. It compiles just fine despite that.

Yes, but when using yay, the compiler throw an error because the secure install, it will be good resolving this warning. I know that you can ignore it but it's better to remove it I think 🤔.