mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01: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
|
@ -216,10 +216,7 @@ impl PathBuilderRef<'_> {
|
|||
}
|
||||
|
||||
fn current_point(&mut self) -> Option<Point2D<f32>> {
|
||||
let inverse = match self.transform.inverse() {
|
||||
Some(i) => i,
|
||||
None => return None,
|
||||
};
|
||||
let inverse = self.transform.inverse()?;
|
||||
self.builder
|
||||
.get_current_point()
|
||||
.map(|point| inverse.transform_point(Point2D::new(point.x, point.y)))
|
||||
|
@ -1404,7 +1401,7 @@ impl<'a> CanvasData<'a> {
|
|||
let canvas_rect = Rect::from_size(canvas_size);
|
||||
if canvas_rect
|
||||
.intersection(&read_rect)
|
||||
.map_or(true, |rect| rect.is_empty())
|
||||
.is_none_or(|rect| rect.is_empty())
|
||||
{
|
||||
return vec![];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue