Browse Source

Bump `rust-version` to 1.71 (#3290)

* Bump `rust-version` to 1.71

* cargo clippy
pull/2448/merge
José Julián Espina 1 year ago committed by GitHub
parent
commit
986b048560
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      Cargo.toml
  2. 2
      boa_engine/src/vm/code_block.rs
  3. 2
      boa_engine/src/vm/opcode/mod.rs

2
Cargo.toml

@ -20,7 +20,7 @@ members = [
[workspace.package]
edition = "2021"
version = "0.17.0"
rust-version = "1.66"
rust-version = "1.71"
authors = ["boa-dev"]
repository = "https://github.com/boa-dev/boa"
license = "Unlicense OR MIT"

2
boa_engine/src/vm/code_block.rs

@ -264,7 +264,7 @@ impl CodeBlock {
/// # Safety
///
/// Does not check if read happens out-of-bounds.
pub(crate) unsafe fn read_unchecked<T>(&self, offset: usize) -> T
pub(crate) const unsafe fn read_unchecked<T>(&self, offset: usize) -> T
where
T: Readable,
{

2
boa_engine/src/vm/opcode/mod.rs

@ -96,7 +96,7 @@ use thin_vec::ThinVec;
/// # Safety
///
/// Does not check if read happens out-of-bounds.
pub(crate) unsafe fn read_unchecked<T>(bytes: &[u8], offset: usize) -> T
pub(crate) const unsafe fn read_unchecked<T>(bytes: &[u8], offset: usize) -> T
where
T: Readable,
{

Loading…
Cancel
Save