Renamed module

This commit is contained in:
2025-04-18 21:18:56 -04:00
parent 721d89a049
commit 6735a0a24f
2 changed files with 4 additions and 4 deletions

View File

@@ -149,7 +149,7 @@ pub mod metadata {
) { ) {
Ok(flac_file) => match flac_file.vorbis_comments() { Ok(flac_file) => match flac_file.vorbis_comments() {
Some(vb) => { Some(vb) => {
let type_str: String = types::o::get_type(t).unwrap(); let type_str: String = types::access::get_type(t).unwrap();
match vb.get(&type_str) { match vb.get(&type_str) {
Some(val) => Ok(val.to_owned()), Some(val) => Ok(val.to_owned()),
None => Err(std::io::Error::new( None => Err(std::io::Error::new(
@@ -192,13 +192,13 @@ pub mod metadata {
vb.set_album(pre_value); vb.set_album(pre_value);
} }
types::Type::AlbumArtist => { types::Type::AlbumArtist => {
vb.insert(types::o::get_type(t).unwrap(), pre_value); vb.insert(types::access::get_type(t).unwrap(), pre_value);
} }
types::Type::Artist => { types::Type::Artist => {
vb.set_artist(pre_value); vb.set_artist(pre_value);
} }
types::Type::Date => { types::Type::Date => {
vb.insert(types::o::get_type(t).unwrap(), pre_value); vb.insert(types::access::get_type(t).unwrap(), pre_value);
} }
types::Type::Disc => { types::Type::Disc => {
vb.set_disk(pre_value.parse().unwrap()); vb.set_disk(pre_value.parse().unwrap());

View File

@@ -9,7 +9,7 @@ pub enum Type {
Disc, Disc,
} }
pub mod o { pub mod access {
pub fn get_type(t: super::Type) -> Result<String, std::io::Error> { pub fn get_type(t: super::Type) -> Result<String, std::io::Error> {
match t { match t {