Code formatting

This commit is contained in:
phoenix
2025-10-11 14:19:45 -04:00
parent 16f633d563
commit 85d8f839f1
2 changed files with 25 additions and 38 deletions
+9 -19
View File
@@ -1,4 +1,4 @@
use std::io::{Read,Write};
use std::io::{Read, Write};
use crate::constants;
use crate::init;
@@ -155,24 +155,14 @@ impl Song {
pub fn save_to_filesystem(&self) -> Result<(), std::io::Error> {
match self.song_path() {
Ok(song_path) => {
match std::fs::File::create(&song_path) {
Ok(mut file) => {
match file.write_all(&self.data) {
Ok(_res) => {
Ok(())
}
Err(err) => {
Err(err)
}
}
}
Err(err) => {
Err(err)
}
}
}
Err(err) => Err(err)
Ok(song_path) => match std::fs::File::create(&song_path) {
Ok(mut file) => match file.write_all(&self.data) {
Ok(_res) => Ok(()),
Err(err) => Err(err),
},
Err(err) => Err(err),
},
Err(err) => Err(err),
}
}