Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Munksgaard
· 1y ago · 0 comments
There isn't actually any close() function in the std::fs::File:
https://doc.rust-lang.org/std/fs/struct.File.html
Comments
[–]
ibotty
1y ago
And if there were one (`drop` kind-of is that function though), it will consume the file handle so you cannot call it again.