File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -23,8 +23,8 @@ cursor-icon = "1.1.0"
23
23
libc = " 0.2.148"
24
24
log = " 0.4"
25
25
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 "
28
28
wayland-backend = " 0.3.0"
29
29
wayland-client = " 0.31.1"
30
30
wayland-cursor = " 0.31.0"
Original file line number Diff line number Diff line change 5
5
6
6
use rustix:: {
7
7
io:: Errno ,
8
- shm:: { Mode , ShmOFlags } ,
8
+ shm:: { Mode , OFlags } ,
9
9
} ;
10
10
use std:: {
11
11
fs:: File ,
@@ -201,12 +201,12 @@ impl RawPool {
201
201
) ;
202
202
203
203
loop {
204
- let flags = ShmOFlags :: CREATE | ShmOFlags :: EXCL | ShmOFlags :: RDWR ;
204
+ let flags = OFlags :: CREATE | OFlags :: EXCL | OFlags :: RDWR ;
205
205
206
206
let mode = Mode :: RUSR | Mode :: WUSR ;
207
207
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 ( ) ) {
210
210
Ok ( _) => return Ok ( fd) ,
211
211
212
212
Err ( errno) => {
You can’t perform that action at this time.
0 commit comments