Implement Clone for File.
Implement `Clone` for `File` so that `File`s can be passed into closures for use in `spawn_blocking`. `File`'s contents are already wrapped in `Arc`s, so the implementation of `clone` is straightforward. This also aligns with `TcpStream` which already implements `Clone` using its internal `Arc`.pull/937/head
parent
b210ee3628
commit
09e99843e4
Loading…
Reference in New Issue