And formatting
All checks were successful
Cargo CI / Lint (pull_request) Successful in 1m5s
Cargo CI / Build and Test (pull_request) Successful in 1m56s

This commit is contained in:
Wojciech Kozlowski 2024-08-24 15:05:48 +02:00
parent 1753203c7d
commit 156316e638

View File

@ -159,10 +159,7 @@ impl<BLE: IBeetsLibraryExecutor> BeetsLibrary<BLE> {
let album_title = split[5].to_string();
let track_number = split[6].parse::<u32>()?;
let track_title = split[7].to_string();
let track_artist = split[8]
.split("; ")
.map(|s| s.to_owned())
.collect();
let track_artist = split[8].split("; ").map(|s| s.to_owned()).collect();
let track_format = match str_to_format(split[9].to_string().as_str()) {
Some(format) => format,
None => return Err(Error::Invalid(line.to_string())),