cargo fix

This commit is contained in:
Chris Cochrun 2025-05-01 09:44:35 -05:00
parent e6621072cd
commit 8cf2d48a16
14 changed files with 85 additions and 115 deletions

View file

@ -3,7 +3,7 @@ use crate::{Background, SlideBuilder, TextAlignment};
use super::{
content::Content,
kinds::ServiceItemKind,
model::{get_db, LibraryKind, Model},
model::{LibraryKind, Model},
service_items::ServiceTrait,
slide::Slide,
};
@ -50,13 +50,7 @@ impl Content for Video {
}
fn background(&self) -> Option<Background> {
if let Ok(background) =
Background::try_from(self.path.clone())
{
Some(background)
} else {
None
}
Background::try_from(self.path.clone()).ok()
}
fn subtext(&self) -> String {