Skip to content

Commit

Permalink
dbus: Make stdfd compile on rust v1.65
Browse files Browse the repository at this point in the history
  • Loading branch information
diwic committed Jan 6, 2023
1 parent 3cf507b commit 7c40860
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/dbus-rs-github-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ jobs:
run: |
export DBUS_SESSION_BUS_ADDRESS=`dbus-daemon --session --print-address --fork`
cargo test --all -- --nocapture --color always
cargo test --features stdfd --all -- --nocapture --color always
cd dbus-codegen && cargo test --all --no-default-features -- --nocapture --color always
build-mingw:
Expand Down
2 changes: 1 addition & 1 deletion dbus/src/arg/messageitem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ mod messageitem_fd_impl {

impl PartialOrd for MessageItemFd {
fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
use std::os::fd::AsRawFd;
use std::os::unix::io::AsRawFd;
let a = self.0.as_raw_fd();
let b = other.0.as_raw_fd();
a.partial_cmp(&b)
Expand Down

0 comments on commit 7c40860

Please sign in to comment.