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)]
mod test {
// #[test]
// fn test_list() {
// let lisp =

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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