Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make retrieve_tty use std::fs::read_link
As it turns out the Rust standard library already includes functionality for reading the destination of a symbolic with the std::fs::read_link function. With this change we replace our low-level implementation with this function, simplifying the logic significantly and reducing two instances of unsafe code.
- Loading branch information