cargo clippy fix

This commit is contained in:
Chris Cochrun 2025-05-01 09:50:59 -05:00
parent 8cf2d48a16
commit 5ed7f6b837
8 changed files with 8 additions and 27 deletions

View file

@ -134,12 +134,6 @@ pub(crate) fn get_lists(exp: &Value) -> Vec<Value> {
#[cfg(test)] #[cfg(test)]
mod test { mod test {
// #[test] // #[test]
// fn test_list() { // fn test_list() {
// let lisp = // let lisp =

View file

@ -4,7 +4,6 @@ use cosmic::iced::Executor;
use miette::{miette, Result}; use miette::{miette, Result};
use sqlx::{Connection, SqliteConnection}; use sqlx::{Connection, SqliteConnection};
#[derive(Debug, Clone)] #[derive(Debug, Clone)]
pub struct Model<T> { pub struct Model<T> {
pub items: Vec<T>, pub items: Vec<T>,

View file

@ -175,11 +175,9 @@ impl From<&Value> for ServiceItem {
Value::Symbol(Symbol(s)) Value::Symbol(Symbol(s))
if s == "presentation" => if s == "presentation" =>
{ {
Self::from( Self::from(&Presentation::from(
&Presentation::from( background,
background, ))
),
)
} }
_ => todo!(), _ => todo!(),
}, },

View file

@ -535,7 +535,6 @@ impl Song {
lyric_list.push(lyric.to_string()); lyric_list.push(lyric.to_string());
} else { } else {
// error!("NOT WORKING!"); // error!("NOT WORKING!");
}; };
} }
// for lyric in lyric_list.iter() { // for lyric in lyric_list.iter() {

View file

@ -37,10 +37,7 @@ pub fn parse_lisp(value: Value) -> Vec<ServiceItem> {
#[cfg(test)] #[cfg(test)]
mod test { mod test {
use std::{ use std::{fs::read_to_string, path::PathBuf};
fs::read_to_string,
path::PathBuf,
};
use crate::{ use crate::{
core::{ core::{

View file

@ -13,13 +13,12 @@ use cosmic::iced_widget::{column, row};
use cosmic::widget::dnd_destination::DragId; use cosmic::widget::dnd_destination::DragId;
use cosmic::widget::nav_bar::nav_bar_style; use cosmic::widget::nav_bar::nav_bar_style;
use cosmic::widget::segmented_button::Entity; use cosmic::widget::segmented_button::Entity;
use cosmic::widget::text;
use cosmic::widget::tooltip::Position as TPosition; use cosmic::widget::tooltip::Position as TPosition;
use cosmic::widget::{ use cosmic::widget::{
button, horizontal_space, nav_bar, search_input, button, horizontal_space, nav_bar, search_input, tooltip, Space,
tooltip, Space,
}; };
use cosmic::widget::{icon, slider}; use cosmic::widget::{icon, slider};
use cosmic::widget::text;
use cosmic::{executor, Application, ApplicationExt, Element}; use cosmic::{executor, Application, ApplicationExt, Element};
use cosmic::{prelude::*, theme}; use cosmic::{prelude::*, theme};
use cosmic::{widget::Container, Theme}; use cosmic::{widget::Container, Theme};
@ -880,8 +879,6 @@ where
#[cfg(test)] #[cfg(test)]
mod test { mod test {
fn test_slide() -> String { fn test_slide() -> String {
let slide = r#"(slide (image :source "./somehting.jpg" :fill cover let slide = r#"(slide (image :source "./somehting.jpg" :fill cover
(text "Something cooler" :font-size 50)))"#; (text "Something cooler" :font-size 50)))"#;

View file

@ -13,9 +13,7 @@ use cosmic::{
Element, Task, Element, Task,
}; };
use miette::{IntoDiagnostic, Result}; use miette::{IntoDiagnostic, Result};
use sqlx::{ use sqlx::{pool::PoolConnection, Sqlite, SqlitePool};
pool::PoolConnection, Sqlite, SqlitePool,
};
use tracing::{debug, error, warn}; use tracing::{debug, error, warn};
use crate::core::{ use crate::core::{

View file

@ -32,7 +32,6 @@ use crate::{
BackgroundKind, BackgroundKind,
}; };
const REFERENCE_WIDTH: f32 = 1920.0; const REFERENCE_WIDTH: f32 = 1920.0;
const REFERENCE_HEIGHT: f32 = 1080.0; const REFERENCE_HEIGHT: f32 = 1080.0;