From cfbb6cf7e35c1fac98ba615ac68e68d0e5591b67 Mon Sep 17 00:00:00 2001 From: Rutger Broekhoff Date: Wed, 24 Jan 2024 20:06:21 +0100 Subject: Fix server build --- server/src/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/src/main.rs b/server/src/main.rs index f18edb3..b6c0ad4 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -1023,7 +1023,10 @@ impl DownloadLimiter { return DownloadLimiter { current: 0, limit }; } }; - let current: u64 = match dlimit_str.parse().map_err(tokio::io::Error::other) { + let current: u64 = match dlimit_str + .parse() + .map_err(|e| tokio::io::Error::new(tokio::io::ErrorKind::InvalidData, e)) + { Ok(current) => current, Err(e) => { println!("Failed to read download counter, assuming 0: {e}"); -- cgit v1.2.3