nushell/crates/nu-path/src
Ian Manske 7ea4895513
Use ref-cast crate to remove some unsafe (#14897)
# Description

In a few places, `nu-path` uses `unsafe` to do reference casts. This PR
adds the [`ref-cast`](https://crates.io/crates/ref-cast) crate to do
reference casts in a "safe" manner.
2025-01-26 12:43:45 -08:00
..
assert_path_eq.rs Path expansion no longer removes trailing slashes (#12662) 2024-05-01 17:28:54 -05:00
components.rs Fix trailing slash in PWD set by cd (#12760) 2024-05-04 12:38:37 +03:00
dots.rs Don't expand ndots if prefixed with ./ (#14755) 2025-01-05 17:07:34 -05:00
expansions.rs Path migration part 3: $nu paths (#13368) 2024-08-01 10:16:31 +02:00
form.rs Use ref-cast crate to remove some unsafe (#14897) 2025-01-26 12:43:45 -08:00
helpers.rs Reduce duplication in history path construction (#13475) 2024-10-11 07:51:50 -05:00
lib.rs Revert "Feature: PWD-per-drive to facilitate working on multiple drives at Windows" (#14598) 2024-12-16 13:52:07 -06:00
path.rs Use ref-cast crate to remove some unsafe (#14897) 2025-01-26 12:43:45 -08:00
tilde.rs Don't expand ndots if prefixed with ./ (#14755) 2025-01-05 17:07:34 -05:00
trailing_slash.rs Start to Add WASM Support Again (#14418) 2024-11-30 07:57:11 -06:00