Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
cberner committed Apr 2, 2024
1 parent 8a729e2 commit 2679166
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,20 @@ build = "build.rs"
[dependencies]
libc = "0.2.51"
log = "0.4.6"
memchr = "2"
memchr = "2.7.2"
page_size = "0.6.0"
serde = { version = "1.0.102", features = ["std", "derive"], optional = true }
smallvec = "1.6.1"
zerocopy = { version = "0.7", features = ["derive"] }
nix = { version = "0.27.1", features = ["user", "fs"] }
nix = { version = "0.28.0", features = ["fs", "user"] }

[dev-dependencies]
env_logger = "0.10"
env_logger = "0.11.3"
clap = { version = "4.4", features = ["cargo", "derive"] }
bincode = "1.3.1"
serde = { version = "1.0.102", features = ["std", "derive"] }
tempfile = "3"
nix = { version = "0.27.1", features = ["poll", "fs"] }
tempfile = "3.10.1"
nix = { version = "0.28.0", features = ["poll", "fs"] }

[build-dependencies]
pkg-config = { version = "0.3.14", optional = true }
Expand Down
4 changes: 2 additions & 2 deletions examples/poll_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ fn main() -> std::io::Result<()> {

let mut pollfds = files
.iter()
.map(|f| poll::PollFd::new(f, poll::PollFlags::POLLIN))
.map(|f| poll::PollFd::new(f.as_fd(), poll::PollFlags::POLLIN))
.collect::<Vec<_>>();

for _ in 0..16 {
poll::poll(pollfds.as_mut_slice(), -1)?;
poll::poll(pollfds.as_mut_slice(), poll::PollTimeout::NONE)?;

for (i, pfd) in pollfds.iter().enumerate() {
let revents = pfd.revents().expect("got unknown poll flag");
Expand Down

0 comments on commit 2679166

Please sign in to comment.