6 ms·
There isn't actually any close() function in the std::fs::File: https://doc.rust-lang.org/std/fs/struct.File.html https://doc.rust-lang.org/std/fs/struct.File.h
by Munksgaard 1y ago
There isn't actually any close() function in the std::fs::File: https://doc.rust-lang.org/std/fs/struct.File.html https://doc.rust-lang.org/std/fs/struct.File.html
- ibotty 1y agoAnd if there were one (`drop` kind-of is that function though), it will consume the file handle so you cannot call it again.