cargo fix
This commit is contained in:
parent
e6621072cd
commit
8cf2d48a16
14 changed files with 85 additions and 115 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue