Compare commits
1 Commits
v0.6.5-65-
...
290db5ce10
Author | SHA1 | Date | |
---|---|---|---|
290db5ce10
|
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -142,7 +142,7 @@ checksum = "5971ac85611da7067dbfcabef3c70ebb5606018acd9e2a3903a0da507521e0d5"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "icarus_models"
|
name = "icarus_models"
|
||||||
version = "0.6.5"
|
version = "0.6.4"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"josekit",
|
"josekit",
|
||||||
"rand",
|
"rand",
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "icarus_models"
|
name = "icarus_models"
|
||||||
version = "0.6.5"
|
version = "0.6.4"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
rust-version = "1.88"
|
rust-version = "1.88"
|
||||||
description = "models used for the icarus project"
|
description = "models used for the icarus project"
|
||||||
|
@@ -1,5 +1,3 @@
|
|||||||
use std::io::Write;
|
|
||||||
|
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
#[derive(Clone, Debug, Default, Deserialize, Serialize, utoipa::ToSchema)]
|
#[derive(Clone, Debug, Default, Deserialize, Serialize, utoipa::ToSchema)]
|
||||||
@@ -28,17 +26,7 @@ pub mod init {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl CoverArt {
|
impl CoverArt {
|
||||||
/// Saves the coverart to the filesystem
|
// TODO: Add method to save to 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),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// TODO: Add method to remove from filesystem
|
// TODO: Add method to remove from filesystem
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user