mirror of https://github.com/astral-sh/uv
Remove TODO around atomic writes (#11710)
## Summary We chatted about this a bit on Discord, and I think it's not required.
This commit is contained in:
parent
efc8d94e65
commit
3fe2882fd5
|
|
@ -117,8 +117,6 @@ pub fn replace_symlink(src: impl AsRef<Path>, dst: impl AsRef<Path>) -> std::io:
|
|||
/// Create a symlink at `dst` pointing to `src`, replacing any existing symlink if necessary.
|
||||
///
|
||||
/// On Unix, this method creates a temporary file, then moves it into place.
|
||||
///
|
||||
/// TODO(charlie): Consider using the `rust-atomicwrites` crate.
|
||||
#[cfg(unix)]
|
||||
pub fn replace_symlink(src: impl AsRef<Path>, dst: impl AsRef<Path>) -> std::io::Result<()> {
|
||||
// Attempt to create the symlink directly.
|
||||
|
|
|
|||
Loading…
Reference in New Issue