chore: update to 2024 rust edition
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "audio-conv"
|
name = "audio-conv"
|
||||||
version = "1.3.1"
|
version = "1.3.1"
|
||||||
edition = "2021"
|
edition = "2024"
|
||||||
description = "Copies directory structure and converts audio files in it"
|
description = "Copies directory structure and converts audio files in it"
|
||||||
authors = ["Thomas Heck <t@b128.net>"]
|
authors = ["Thomas Heck <t@b128.net>"]
|
||||||
repository = "https://gitlab.com/chpio/audio-conv"
|
repository = "https://gitlab.com/chpio/audio-conv"
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
use anyhow::{Context, Error, Result};
|
use anyhow::{Context, Error, Result};
|
||||||
use clap::{builder::ValueParser, ArgAction};
|
use clap::{ArgAction, builder::ValueParser};
|
||||||
use globset::GlobBuilder;
|
use globset::GlobBuilder;
|
||||||
use regex::bytes::{Regex, RegexBuilder};
|
use regex::bytes::{Regex, RegexBuilder};
|
||||||
use serde::Deserialize;
|
use serde::Deserialize;
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ use crate::config::{Config, Transcode};
|
|||||||
use anyhow::{Context, Error, Result};
|
use anyhow::{Context, Error, Result};
|
||||||
use futures::{pin_mut, prelude::*};
|
use futures::{pin_mut, prelude::*};
|
||||||
use glib::Boxed;
|
use glib::Boxed;
|
||||||
use gstreamer::{element_error, prelude::*, Element};
|
use gstreamer::{Element, element_error, prelude::*};
|
||||||
use gstreamer_base::prelude::*;
|
use gstreamer_base::prelude::*;
|
||||||
use std::{
|
use std::{
|
||||||
borrow::Cow,
|
borrow::Cow,
|
||||||
@@ -132,7 +132,7 @@ fn get_conversion_args(config: &Config) -> impl Iterator<Item = Result<Conversio
|
|||||||
Err(err) => {
|
Err(err) => {
|
||||||
return Err(err).with_context(|| {
|
return Err(err).with_context(|| {
|
||||||
format!("Unable to get mtime for \"to\" file {}", to.display())
|
format!("Unable to get mtime for \"to\" file {}", to.display())
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
use glib::{gstr, GStr, Value};
|
use glib::{GStr, Value, gstr};
|
||||||
use gstreamer::{
|
use gstreamer::{
|
||||||
tags::{merge_strings_with_comma, CustomTag},
|
|
||||||
Tag, TagFlag,
|
Tag, TagFlag,
|
||||||
|
tags::{CustomTag, merge_strings_with_comma},
|
||||||
};
|
};
|
||||||
|
|
||||||
pub struct MbArtistId;
|
pub struct MbArtistId;
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ use std::{
|
|||||||
time::Duration,
|
time::Duration,
|
||||||
};
|
};
|
||||||
use tokio::{task, time::interval};
|
use tokio::{task, time::interval};
|
||||||
use tui::{backend::CrosstermBackend, Terminal};
|
use tui::{Terminal, backend::CrosstermBackend};
|
||||||
|
|
||||||
pub const UPDATE_INTERVAL_MILLIS: u64 = 100;
|
pub const UPDATE_INTERVAL_MILLIS: u64 = 100;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user