Skip to content

Commit 0eba37b

Browse files
m4rch3n1ngwash2
authored andcommitted
update to rustix 1 and thiserror 2
1 parent dee5011 commit 0eba37b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ cursor-icon = "1.1.0"
2323
libc = "0.2.148"
2424
log = "0.4"
2525
memmap2 = "0.9.0"
26-
rustix = { version = "0.38.15", features = ["fs", "pipe", "shm"] }
27-
thiserror = "1.0.30"
26+
rustix = { version = "1.0.7", features = ["fs", "pipe", "shm"] }
27+
thiserror = "2.0.12"
2828
wayland-backend = "0.3.0"
2929
wayland-client = "0.31.1"
3030
wayland-cursor = "0.31.0"

src/shm/raw.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
use rustix::{
77
io::Errno,
8-
shm::{Mode, ShmOFlags},
8+
shm::{Mode, OFlags},
99
};
1010
use std::{
1111
fs::File,
@@ -201,12 +201,12 @@ impl RawPool {
201201
);
202202

203203
loop {
204-
let flags = ShmOFlags::CREATE | ShmOFlags::EXCL | ShmOFlags::RDWR;
204+
let flags = OFlags::CREATE | OFlags::EXCL | OFlags::RDWR;
205205

206206
let mode = Mode::RUSR | Mode::WUSR;
207207

208-
match rustix::shm::shm_open(mem_file_handle.as_str(), flags, mode) {
209-
Ok(fd) => match rustix::shm::shm_unlink(mem_file_handle.as_str()) {
208+
match rustix::shm::open(mem_file_handle.as_str(), flags, mode) {
209+
Ok(fd) => match rustix::shm::unlink(mem_file_handle.as_str()) {
210210
Ok(_) => return Ok(fd),
211211

212212
Err(errno) => {

0 commit comments

Comments
 (0)