chore: update to 2024 rust edition

This commit is contained in:
2026-02-15 00:16:19 +01:00
parent d746fbb152
commit 4b9cc3acd3
5 changed files with 7 additions and 7 deletions

View File

@@ -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 <t@b128.net>"]
repository = "https://gitlab.com/chpio/audio-conv"

View File

@@ -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;

View File

@@ -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<Item = Result<Conversio
Err(err) => {
return Err(err).with_context(|| {
format!("Unable to get mtime for \"to\" file {}", to.display())
})
});
}
}
};

View File

@@ -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;

View File

@@ -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;