Skip to content

Commit

Permalink
Fix glob! input_file on Windows (#371)
Browse files Browse the repository at this point in the history
  • Loading branch information
smonicas committed Jun 16, 2023
1 parent a23d982 commit 1eab812
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -315,9 +315,10 @@ impl<'a> SnapshotAssertionContext<'a> {
.canonicalize()
.ok()
.and_then(|s| {
s.strip_prefix(self.cargo_workspace.as_path())
self.cargo_workspace
.canonicalize()
.ok()
.map(|x| x.to_path_buf())
.and_then(|cw| s.strip_prefix(cw).ok().map(|x| x.to_path_buf()))
})
}

Expand Down

0 comments on commit 1eab812

Please sign in to comment.