Skip to content

Commit

Permalink
chore: Bump MSRV to 1.76 (#1865)
Browse files Browse the repository at this point in the history
* chore: Bump MSRV to 1.76

Gecko did two days ago

* Update check.yml
  • Loading branch information
larseggert authored May 2, 2024
1 parent 7070e7b commit 8c4411a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ jobs:
matrix:
os: [ubuntu-latest, macos-14, windows-latest]
# Don't increase beyond what Firefox is currently using:
# https://firefox-source-docs.mozilla.org/writing-rust-code/update-policy.html#schedule
rust-toolchain: [1.74.0, stable, nightly]
# https://searchfox.org/mozilla-central/search?q=MINIMUM_RUST_VERSION&path=python/mozboot/mozboot/util.py
# Keep in sync with Cargo.toml
rust-toolchain: [1.76.0, stable, nightly]
type: [debug]
include:
- os: ubuntu-latest
Expand Down
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ edition = "2021"
license = "MIT OR Apache-2.0"
# Don't increase beyond what Firefox is currently using:
# https://searchfox.org/mozilla-central/search?q=MINIMUM_RUST_VERSION&path=python/mozboot/mozboot/util.py
rust-version = "1.74.0"
# Keep in sync with .github/workflows/check.yml
rust-version = "1.76.0"

[workspace.dependencies]
log = { version = "0.4", default-features = false }
Expand Down
2 changes: 1 addition & 1 deletion neqo-crypto/src/agentio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const PR_FAILURE: PrStatus = prio::PRStatus::PR_FAILURE;

/// Convert a pinned, boxed object into a void pointer.
pub fn as_c_void<T: Unpin>(pin: &mut Pin<Box<T>>) -> *mut c_void {
(Pin::into_inner(pin.as_mut()) as *mut T).cast()
(std::ptr::from_mut::<T>(Pin::into_inner(pin.as_mut()))).cast()
}

/// A slice of the output.
Expand Down

0 comments on commit 8c4411a

Please sign in to comment.