From c2634b4346f94332193b5d3d38883e8c4d8e002f Mon Sep 17 00:00:00 2001 From: Matthew Jackson Date: Mon, 11 May 2026 19:55:25 -0700 Subject: [PATCH] v0.18.17: bump version --- Cargo.toml | 2 +- src/disc/mod.rs | 6 +++--- src/mux/resolve.rs | 3 ++- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 07fcc11..545625e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "libfreemkv" -version = "0.18.16" +version = "0.18.17" edition = "2024" rust-version = "1.86" license = "AGPL-3.0-only" diff --git a/src/disc/mod.rs b/src/disc/mod.rs index 872fb15..65e1d85 100644 --- a/src/disc/mod.rs +++ b/src/disc/mod.rs @@ -3412,9 +3412,9 @@ pub fn detect_max_batch_sectors(device_path: &str) -> u16 { } // Check if optical drive (0x05 = CD/DVD) - let is_optical = (|| -> bool { + let is_optical = (|| -> bool { use std::path::Path; - let scsi_device_dir = format!("/sys/class/scsi_device/"); + let scsi_device_dir = "/sys/class/scsi_device/".to_string(); if let Ok(entries) = std::fs::read_dir(&scsi_device_dir) { for entry in entries.flatten() { let device_type_path = entry.path().join("device/type"); @@ -3458,7 +3458,7 @@ pub fn detect_max_batch_sectors(device_path: &str) -> u16 { } } } - DEFAULT_BATCH_SECTORS_OPTICAL + DEFAULT_BATCH_SECTORS_OPTICAL } else { DEFAULT_BATCH_SECTORS_BLOCK } diff --git a/src/mux/resolve.rs b/src/mux/resolve.rs index 55dc363..92a8a5a 100644 --- a/src/mux/resolve.rs +++ b/src/mux/resolve.rs @@ -207,7 +207,8 @@ pub fn input(url: &str, opts: &InputOptions) -> io::Result