Skip to content

Commit

Permalink
bump xmodits_lib
Browse files Browse the repository at this point in the history
  • Loading branch information
B0ney committed Aug 26, 2024
1 parent 7bc9e88 commit c32a2aa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ repository = "https://github.com/B0ney/xmodits-cli"

[dependencies.xmodits-lib]
git = "https://github.com/B0ney/xmodits-lib.git"
rev = "c2ef080"
rev = "6f4da08"

[dependencies]
clap = { version = "4", features = ["derive", "cargo", "wrap_help"] }
Expand Down
6 changes: 3 additions & 3 deletions src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::path::{Path, PathBuf};

use xmodits_lib::info::Info;
use xmodits_lib::{
export::{Format, Ripper, SampleNamer, SampleNamerTrait},
export::{AudioFormat, Ripper, SampleNamer, SampleNamerTrait},
extract,
};

Expand Down Expand Up @@ -51,7 +51,7 @@ pub fn info(cli: Cli) {
}

pub fn rip(cli: Cli, destination: PathBuf) {
let ripper = Ripper::new(build_namer(&cli), get_format(&cli.format).into());
let ripper = Ripper::new(build_namer(&cli), get_format(&cli.format));
let filter = strict_loading(cli.strict);

let files: Vec<PathBuf> = cli
Expand Down Expand Up @@ -103,7 +103,7 @@ pub fn rip(cli: Cli, destination: PathBuf) {
println!("Done!");
}

fn get_format(format: &str) -> Format {
fn get_format(format: &str) -> AudioFormat {
format.parse().unwrap_or_default()
}

Expand Down

0 comments on commit c32a2aa

Please sign in to comment.