From 32058d32dec50cc9cab252b10457a540c34b0853 Mon Sep 17 00:00:00 2001 From: Ward from fusion-voyager-3 Date: Tue, 6 Aug 2024 19:53:57 +0300 Subject: [PATCH] fix warn --- src/build_ui.rs | 2 +- src/eula_page/mod.rs | 2 +- src/language_page/mod.rs | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/build_ui.rs b/src/build_ui.rs index 9c97d7a..7d33a33 100644 --- a/src/build_ui.rs +++ b/src/build_ui.rs @@ -51,7 +51,7 @@ pub fn build_ui(app: &adw::Application) { let language_changed_action = gio::SimpleAction::new("lang-changed", None); - language_page::language_page(&window, &carousel, &language_changed_action); + language_page::language_page(&carousel, &language_changed_action); eula_page::eula_page(&carousel, &language_changed_action); diff --git a/src/eula_page/mod.rs b/src/eula_page/mod.rs index a2f7148..6c4a877 100644 --- a/src/eula_page/mod.rs +++ b/src/eula_page/mod.rs @@ -101,7 +101,7 @@ pub fn eula_page( closure_local!( #[weak] main_carousel, - move |language_page: installer_stack_page::InstallerStackPage| + move |_language_page: installer_stack_page::InstallerStackPage| { main_carousel.scroll_to(&main_carousel.nth_page(1), true) } diff --git a/src/language_page/mod.rs b/src/language_page/mod.rs index e25f2f6..28a2389 100644 --- a/src/language_page/mod.rs +++ b/src/language_page/mod.rs @@ -5,7 +5,6 @@ use adw::{prelude::*}; use glib::{clone, closure_local}; use std::{process::Command, env, fs, path::Path}; pub fn language_page( - window: &adw::ApplicationWindow, main_carousel: &adw::Carousel, language_changed_action: &gio::SimpleAction ) { @@ -316,7 +315,7 @@ pub fn language_page( closure_local!( #[weak] main_carousel, - move |language_page: installer_stack_page::InstallerStackPage| + move |_language_page: installer_stack_page::InstallerStackPage| { main_carousel.scroll_to(&main_carousel.nth_page(0), true) }