Code formatting
This commit is contained in:
@@ -2,7 +2,6 @@ use std::io::Write;
|
||||
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
|
||||
#[derive(Clone, Debug, Default, Deserialize, Serialize, utoipa::ToSchema)]
|
||||
pub struct CoverArt {
|
||||
pub id: uuid::Uuid,
|
||||
@@ -32,19 +31,11 @@ impl CoverArt {
|
||||
/// Saves the coverart to the filesystem
|
||||
pub fn save_to_filesystem(&self) -> Result<(), std::io::Error> {
|
||||
match std::fs::File::create(&self.path) {
|
||||
Ok(mut file) => {
|
||||
match file.write_all(&self.data) {
|
||||
Ok(_) => {
|
||||
Ok(())
|
||||
}
|
||||
Err(err) => {
|
||||
Err(err)
|
||||
}
|
||||
}
|
||||
}
|
||||
Err(err) => {
|
||||
Err(err)
|
||||
}
|
||||
Ok(mut file) => match file.write_all(&self.data) {
|
||||
Ok(_) => Ok(()),
|
||||
Err(err) => Err(err),
|
||||
},
|
||||
Err(err) => Err(err),
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user