mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Update to rust 1.85 (#35628)
* Update to rust 1.85 This is needed for cargo-deny Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Upgrade crown Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Clippy fixes Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * 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 <simon.wuelker@arcor.de> --------- Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
This commit is contained in:
parent
d78f7b2d78
commit
be6765447d
36 changed files with 88 additions and 105 deletions
|
@ -72,7 +72,7 @@ impl HttpStatus {
|
|||
|
||||
/// Helper that relays is_success() from the underlying code.
|
||||
pub fn is_success(&self) -> bool {
|
||||
StatusCode::from_u16(self.code).map_or(false, |s| s.is_success())
|
||||
StatusCode::from_u16(self.code).is_ok_and(|s| s.is_success())
|
||||
}
|
||||
|
||||
/// True when the object was created with `new_error`.
|
||||
|
|
|
@ -787,9 +787,9 @@ fn validate_range_header(value: &str) -> bool {
|
|||
if let Some(start) = start {
|
||||
if let Ok(start_num) = start.parse::<u64>() {
|
||||
return match end {
|
||||
Some(e) if !e.is_empty() => e
|
||||
.parse::<u64>()
|
||||
.map_or(false, |end_num| start_num <= end_num),
|
||||
Some(e) if !e.is_empty() => {
|
||||
e.parse::<u64>().is_ok_and(|end_num| start_num <= end_num)
|
||||
},
|
||||
_ => true,
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue