Skip to content

Commit 986b048

Browse files
authored
Bump rust-version to 1.71 (#3290)
* Bump `rust-version` to 1.71 * cargo clippy
1 parent 8a78061 commit 986b048

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ members = [
2020
[workspace.package]
2121
edition = "2021"
2222
version = "0.17.0"
23-
rust-version = "1.66"
23+
rust-version = "1.71"
2424
authors = ["boa-dev"]
2525
repository = "https://github.com/boa-dev/boa"
2626
license = "Unlicense OR MIT"

boa_engine/src/vm/code_block.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ impl CodeBlock {
264264
/// # Safety
265265
///
266266
/// Does not check if read happens out-of-bounds.
267-
pub(crate) unsafe fn read_unchecked<T>(&self, offset: usize) -> T
267+
pub(crate) const unsafe fn read_unchecked<T>(&self, offset: usize) -> T
268268
where
269269
T: Readable,
270270
{

boa_engine/src/vm/opcode/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ use thin_vec::ThinVec;
9696
/// # Safety
9797
///
9898
/// Does not check if read happens out-of-bounds.
99-
pub(crate) unsafe fn read_unchecked<T>(bytes: &[u8], offset: usize) -> T
99+
pub(crate) const unsafe fn read_unchecked<T>(bytes: &[u8], offset: usize) -> T
100100
where
101101
T: Readable,
102102
{

0 commit comments

Comments
 (0)