From be6765447d84e28e35903dd3b10e9d81ada0b53d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20W=C3=BClker?= Date: Mon, 24 Feb 2025 18:44:35 +0100 Subject: Update to rust 1.85 (#35628) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update to rust 1.85 This is needed for cargo-deny Signed-off-by: Simon Wülker * Upgrade crown Signed-off-by: Simon Wülker * Clippy fixes Signed-off-by: Simon Wülker * Re-upgrade cargo-deny to 0.18 Keeping it locked to 0.18 just in case they update their required rustc version again Signed-off-by: Simon Wülker --------- Signed-off-by: Simon Wülker --- components/shared/net/request.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'components/shared/net/request.rs') diff --git a/components/shared/net/request.rs b/components/shared/net/request.rs index 14757bd4e5d..b3b61b5dafc 100644 --- a/components/shared/net/request.rs +++ b/components/shared/net/request.rs @@ -787,9 +787,9 @@ fn validate_range_header(value: &str) -> bool { if let Some(start) = start { if let Ok(start_num) = start.parse::() { return match end { - Some(e) if !e.is_empty() => e - .parse::() - .map_or(false, |end_num| start_num <= end_num), + Some(e) if !e.is_empty() => { + e.parse::().is_ok_and(|end_num| start_num <= end_num) + }, _ => true, }; } -- cgit v1.2.3