diff --git a/Cargo.toml b/Cargo.toml index 77ab0cc..ca7a075 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "audio-conv" version = "1.3.1" -edition = "2021" +edition = "2024" description = "Copies directory structure and converts audio files in it" authors = ["Thomas Heck "] repository = "https://gitlab.com/chpio/audio-conv" diff --git a/src/config.rs b/src/config.rs index 3f3d471..4298f45 100644 --- a/src/config.rs +++ b/src/config.rs @@ -1,5 +1,5 @@ use anyhow::{Context, Error, Result}; -use clap::{builder::ValueParser, ArgAction}; +use clap::{ArgAction, builder::ValueParser}; use globset::GlobBuilder; use regex::bytes::{Regex, RegexBuilder}; use serde::Deserialize; diff --git a/src/main.rs b/src/main.rs index 45c2630..b29bf02 100644 --- a/src/main.rs +++ b/src/main.rs @@ -6,7 +6,7 @@ use crate::config::{Config, Transcode}; use anyhow::{Context, Error, Result}; use futures::{pin_mut, prelude::*}; use glib::Boxed; -use gstreamer::{element_error, prelude::*, Element}; +use gstreamer::{Element, element_error, prelude::*}; use gstreamer_base::prelude::*; use std::{ borrow::Cow, @@ -132,7 +132,7 @@ fn get_conversion_args(config: &Config) -> impl Iterator { return Err(err).with_context(|| { format!("Unable to get mtime for \"to\" file {}", to.display()) - }) + }); } } }; diff --git a/src/tag.rs b/src/tag.rs index 63cb4a7..19286dd 100644 --- a/src/tag.rs +++ b/src/tag.rs @@ -1,7 +1,7 @@ -use glib::{gstr, GStr, Value}; +use glib::{GStr, Value, gstr}; use gstreamer::{ - tags::{merge_strings_with_comma, CustomTag}, Tag, TagFlag, + tags::{CustomTag, merge_strings_with_comma}, }; pub struct MbArtistId; diff --git a/src/ui.rs b/src/ui.rs index b8be9d7..fa768ce 100644 --- a/src/ui.rs +++ b/src/ui.rs @@ -6,7 +6,7 @@ use std::{ time::Duration, }; use tokio::{task, time::interval}; -use tui::{backend::CrosstermBackend, Terminal}; +use tui::{Terminal, backend::CrosstermBackend}; pub const UPDATE_INTERVAL_MILLIS: u64 = 100;