Chore: Rust 1.72.0 Clippy lints, adjust MSRV

MSRV was bumped by serenity-next, and so we too must follow suit.
This commit is contained in:
Kyle Simpson
2023-08-28 22:19:14 +01:00
parent 77a9b4626c
commit 6f801563e5
7 changed files with 17 additions and 10 deletions

View File

@@ -49,6 +49,7 @@ use symphonia_core::{
};
use tracing::{debug, trace};
/// Configuration for a cached source.
pub struct Config {
/// Registry of audio codecs supported by the driver.
///
@@ -81,6 +82,9 @@ impl Default for Config {
}
impl Config {
/// Generate a storage configuration given an estimated storage bitrate
/// `cost_per_sec` in bytes/s.
#[must_use]
pub fn default_from_cost(cost_per_sec: usize) -> Self {
let streamcatcher = default_config(cost_per_sec);
Self {