From 64c1ab7b1cd3200f60b0f3912225867861cccdfa Mon Sep 17 00:00:00 2001 From: B0ney <40839054+B0ney@users.noreply.github.com> Date: Sun, 18 Aug 2024 22:59:35 +0100 Subject: [PATCH] bump xmodits-lib --- Cargo.lock | 6 +++--- Cargo.toml | 4 ++-- src/api.rs | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 9ccfe3e..a229342 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1042,7 +1042,7 @@ checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" [[package]] name = "xmodits" -version = "0.11.3" +version = "0.11.4" dependencies = [ "built", "clap", @@ -1054,8 +1054,8 @@ dependencies = [ [[package]] name = "xmodits-lib" -version = "0.8.0" -source = "git+https://github.com/B0ney/xmodits-lib.git?rev=ce5d922#ce5d922e793dffe7c067e3bbde9da65b9a3a5a80" +version = "0.9.0" +source = "git+https://github.com/B0ney/xmodits-lib.git?rev=1773dfb#1773dfbaed5981d56f33fc692878d56c196afbe9" dependencies = [ "ascii", "bytemuck", diff --git a/Cargo.toml b/Cargo.toml index a6541a4..9519fbb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "xmodits" authors = ["B0ney - https://github.com/B0ney"] description = "XMODITS command line application" -version = "0.11.3" +version = "0.11.4" edition = "2021" license = "LGPLv3" repository = "https://github.com/B0ney/xmodits-cli" @@ -10,7 +10,7 @@ repository = "https://github.com/B0ney/xmodits-cli" [dependencies.xmodits-lib] git = "https://github.com/B0ney/xmodits-lib.git" -rev = "ce5d922" +rev = "1773dfb" [dependencies] clap = { version = "4", features = ["derive", "cargo", "wrap_help"] } diff --git a/src/api.rs b/src/api.rs index 54c190c..44148d0 100644 --- a/src/api.rs +++ b/src/api.rs @@ -1,10 +1,10 @@ use crate::Cli; use std::path::{Path, PathBuf}; -use xmodits_lib::common::info::Info; +use xmodits_lib::info::Info; use xmodits_lib::{ - common::extract, exporter::AudioFormat, interface::ripper::Ripper, SampleNamer, - SampleNamerTrait, + export::{Format, Ripper, SampleNamer, SampleNamerTrait}, + extract, }; pub fn build_namer(cli: &Cli) -> Box { @@ -103,7 +103,7 @@ pub fn rip(cli: Cli, destination: PathBuf) { println!("Done!"); } -fn get_format(format: &str) -> AudioFormat { +fn get_format(format: &str) -> Format { format.parse().unwrap_or_default() }