nix icon indicating copy to clipboard operation
nix copied to clipboard

Dir does not implement AsFd

Open chadaustin opened this issue 11 months ago • 2 comments
trafficstars

fstatfs takes as AsFd. It used to take AsRawFd in 0.26.

That's fine, but Dir does not implement AsFd, requiring an unsafe BorrowedFd construction.

chadaustin avatar Nov 22 '24 21:11 chadaustin

Hi, I fixed this in #2434:

https://github.com/nix-rust/nix/blob/db4ce6aef3ee8e38724385377910b54efa1fddaa/src/dir.rs#L135-L145

Though it has not been released yet.

Sigh, there are still a bunch of things to do before the 0.30.0 release, but I am too busy with my work and barely have time to push them. 😪

SteveLauC avatar Nov 23 '24 00:11 SteveLauC

Perfect! No hurry, just will make things a little nicer in the future. Looking forward to the release when you have time!

chadaustin avatar Nov 23 '24 04:11 chadaustin