From 1847a35f1e11fbf12bb6349f9fe1a25fc694bc77 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Mon, 18 Aug 2025 05:35:10 -0500 Subject: [PATCH] fixing some clippy warnings --- Cargo.toml | 3 +++ src/main.rs | 8 +++----- src/ui/presenter.rs | 6 +++--- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 9204cba..b62483e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -49,3 +49,6 @@ opt-level = 3 [profile.release] opt-level = 3 debug = true + +[lints.rust] +mismatched_lifetime_syntaxes = "allow" \ No newline at end of file diff --git a/src/main.rs b/src/main.rs index 471e3e0..4bb063e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,27 +1,26 @@ use clap::{command, Parser}; -use core::service_items::{Service, ServiceItem}; +use core::service_items::ServiceItem; use core::slide::*; use core::songs::Song; use cosmic::app::context_drawer::ContextDrawer; use cosmic::app::{Core, Settings, Task}; -use cosmic::iced::clipboard::dnd::DndAction; use cosmic::iced::keyboard::{Key, Modifiers}; use cosmic::iced::window::{Mode, Position}; use cosmic::iced::{self, event, window, Length, Padding, Point}; use cosmic::iced_futures::Subscription; use cosmic::iced_widget::{column, row}; use cosmic::widget::dnd_destination::{ - self, dnd_destination, dnd_destination_for_data, DragId, + dnd_destination, dnd_destination_for_data, }; use cosmic::widget::nav_bar::nav_bar_style; use cosmic::widget::segmented_button::Entity; +use cosmic::widget::text; use cosmic::widget::tooltip::Position as TPosition; use cosmic::widget::{ button, horizontal_space, nav_bar, search_input, tooltip, vertical_space, Space, }; use cosmic::widget::{icon, slider}; -use cosmic::widget::{mouse_area, text}; use cosmic::{executor, Application, ApplicationExt, Element}; use cosmic::{prelude::*, theme}; use cosmic::{widget::Container, Theme}; @@ -29,7 +28,6 @@ use crisp::types::Value; use lisp::parse_lisp; use miette::{miette, Result}; use rayon::prelude::*; -use std::collections::BTreeMap; use std::fs::read_to_string; use std::path::PathBuf; use tracing::{debug, level_filters::LevelFilter}; diff --git a/src/ui/presenter.rs b/src/ui/presenter.rs index 135ba30..46bab48 100644 --- a/src/ui/presenter.rs +++ b/src/ui/presenter.rs @@ -564,13 +564,13 @@ fn scale_font(font_size: f32, width: f32) -> f32 { } } -pub(crate) fn slide_view<'a>( +pub(crate) fn slide_view( slide: Slide, - video: &'a Option