MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / paths_same

Function paths_same

src/hooks/cursor_shell.rs:382–387  ·  view source on GitHub ↗
(a: &Path, b: &Path)

Source from the content-addressed store, hash-verified

380}
381
382pub(super) fn paths_same(a: &Path, b: &Path) -> bool {
383 match (a.canonicalize(), b.canonicalize()) {
384 (Ok(a), Ok(b)) => a == b,
385 _ => a == b,
386 }
387}
388
389#[cfg(test)]
390#[allow(clippy::unwrap_used)]

Calls

no outgoing calls

Tested by

no test coverage detected