Skip to content

Commit

Permalink
Bump rust-version to 1.71 (#3290)
Browse files Browse the repository at this point in the history
* Bump `rust-version` to 1.71

* cargo clippy
  • Loading branch information
jedel1043 committed Sep 20, 2023
1 parent 8a78061 commit 986b048
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion boa_engine/src/vm/code_block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
{
Expand Down
2 changes: 1 addition & 1 deletion boa_engine/src/vm/opcode/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
{
Expand Down

0 comments on commit 986b048

Please sign in to comment.