We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b869424 commit 934d394Copy full SHA for 934d394
CHANGELOG.md
@@ -3,6 +3,13 @@
3
All notable changes to this project will be documented in this file.
4
This project adheres to [Semantic Versioning](https://semver.org/).
5
6
+## [Unreleased] - ReleaseDate
7
+
8
+### Fixed
9
10
+- Relaxed lifetime requirements for `PollFd::new`.
11
+ ([#2134](https://github.com/nix-rust/nix/pull/2134))
12
13
## [0.27.1] - 2023-08-28
14
15
### Fixed
src/poll.rs
@@ -36,7 +36,7 @@ impl<'fd> PollFd<'fd> {
36
//
37
// // Do something with `pollfd`, which uses the CLOSED fd.
38
// ```
39
- pub fn new<Fd: AsFd>(fd: &'fd Fd, events: PollFlags) -> PollFd<'fd> {
+ pub fn new<Fd: AsFd + 'fd>(fd: &Fd, events: PollFlags) -> PollFd<'fd> {
40
PollFd {
41
pollfd: libc::pollfd {
42
fd: fd.as_fd().as_raw_fd(),
0 commit comments