mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +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
|
@ -670,7 +670,7 @@ impl WebGLRenderingContext {
|
|||
// or UNSIGNED_SHORT_5_5_5_1, a Uint16Array must be supplied.
|
||||
// or FLOAT, a Float32Array must be supplied.
|
||||
// If the types do not match, an INVALID_OPERATION error is generated.
|
||||
let data_type_matches = data.as_ref().map_or(true, |buffer| {
|
||||
let data_type_matches = data.as_ref().is_none_or(|buffer| {
|
||||
Some(data_type.sized_data_type()) ==
|
||||
array_buffer_type_to_sized_type(buffer.get_array_type()) &&
|
||||
data_type.required_webgl_version() <= self.webgl_version()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue