Skip to content

Commit

Permalink
Merge pull request #129 from de-vri-es/fix-ci
Browse files Browse the repository at this point in the history
Fix CI
  • Loading branch information
allan2 authored Dec 5, 2024
2 parents b7c98cb + c06808e commit 555334c
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ jobs:
uses: actions/checkout@v3

- name: Install toolchain
uses: dtolnay/rust-toolchain@1.36.0
uses: dtolnay/rust-toolchain@1.63.0

# do not test, because dev-dependencies do not follow MSRV
- name: Build
Expand Down
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ repository = "https://github.com/RazrFalcon/memmap2-rs"
documentation = "https://docs.rs/memmap2"
description = "Cross-platform Rust API for memory-mapped file IO"
keywords = ["mmap", "memory-map", "io", "file"]
edition = "2018"
edition = "2021"
rust-version = "1.63"

[dependencies]
stable_deref_trait = { version = "1.0", optional = true }
Expand Down
1 change: 0 additions & 1 deletion clippy.toml

This file was deleted.

4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ impl MmapAsRawDesc for RawFd {
}

#[cfg(unix)]
impl<'a, T> MmapAsRawDesc for &'a T
impl<T> MmapAsRawDesc for &T
where
T: AsRawFd,
{
Expand All @@ -126,7 +126,7 @@ impl MmapAsRawDesc for RawHandle {
}

#[cfg(windows)]
impl<'a, T> MmapAsRawDesc for &'a T
impl<T> MmapAsRawDesc for &T
where
T: AsRawHandle,
{
Expand Down
2 changes: 1 addition & 1 deletion src/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ impl MmapInner {

#[inline]
pub fn mut_ptr(&mut self) -> *mut u8 {
self.ptr as *mut u8
self.ptr.cast()
}

#[inline]
Expand Down
2 changes: 1 addition & 1 deletion src/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ impl MmapInner {

#[inline]
pub fn mut_ptr(&mut self) -> *mut u8 {
self.ptr as *mut u8
self.ptr.cast()
}

#[inline]
Expand Down

0 comments on commit 555334c

Please sign in to comment.