Added function to make coverart init easier #24
@@ -13,7 +13,7 @@ pub struct CoverArt {
|
|||||||
pub mod init {
|
pub mod init {
|
||||||
use crate::coverart::CoverArt;
|
use crate::coverart::CoverArt;
|
||||||
|
|
||||||
pub fn init_coverart_only_path(path: &String) -> CoverArt {
|
pub fn init_coverart_only_path(path: String) -> CoverArt {
|
||||||
CoverArt {
|
CoverArt {
|
||||||
id: uuid::Uuid::new_v4(),
|
id: uuid::Uuid::new_v4(),
|
||||||
title: String::new(),
|
title: String::new(),
|
||||||
|
Reference in New Issue
Block a user