File: relax-rustix.patch

package info (click to toggle)
rust-drm 0.14.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 376 kB
  • sloc: makefile: 2
file content (29 lines) | stat: -rw-r--r-- 680 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -89,7 +89,7 @@
 version = "^2.2.0"
 
 [dependencies.rustix]
-version = "0.38.22"
+version = "1"
 features = [
     "mm",
     "fs",
@@ -101,7 +101,7 @@
 default-features = false
 
 [dev-dependencies.rustix]
-version = "0.38.22"
+version = "1"
 features = [
     "event",
     "mm",
--- a/examples/syncobj.rs
+++ b/examples/syncobj.rs
@@ -49,5 +49,5 @@
     // let future = async move { afd.readable().await.unwrap().retain_ready() };
     // future.await;
     let mut poll_fds = [rustix::event::PollFd::new(&fd, PollFlags::IN)];
-    rustix::event::poll(&mut poll_fds, -1).unwrap();
+    rustix::event::poll(&mut poll_fds, None).unwrap();
 }