ZIm/crates/remote_server/src
tidely 5d634245a2
remote_server: Remove unnecessary Box, prevent time-of-check time-of-use bug (#24730)
The MultiWrite struct is defined in the function scope and is allowed to
have a concrete type, which means we can throw away the extra Box.
PathBuf::exists is known to be prone to invalid usage. It doesn't take
into account permissions errors and just returns false, additionally it
introduces a time-of-check time-of-use bug. While extremely unlikely,
why not fix it anyway.

Release Notes:

- remove unnecessary Box
- prevent time-of-check time-of-use bug
2025-02-12 20:55:22 -07:00
..
headless_project.rs Add an undo button to the git panel (#24593) 2025-02-12 15:57:08 -07:00
main.rs Fix build of remote_server when not in git repo (#24424) 2025-02-07 04:35:22 +00:00
remote_editing_tests.rs Add an undo button to the git panel (#24593) 2025-02-12 15:57:08 -07:00
remote_server.rs Add settings to remote servers, use XDG paths on remote, and enable node LSPs (#19176) 2024-10-15 23:32:44 -07:00
unix.rs remote_server: Remove unnecessary Box, prevent time-of-check time-of-use bug (#24730) 2025-02-12 20:55:22 -07:00