Skip to content

Commit

Permalink
fix: panic if source does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
urin committed Feb 19, 2023
1 parent 8861dc3 commit 2f237d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ pub fn list_files(args: &[String]) -> Result<Vec<String>> {
if globbed.is_empty() {
anyhow::bail!("Failed to access {}", arg);
}
globbed.sort_unstable_by_key(|a| a.canonicalize().unwrap());
globbed.sort_unstable();
paths.append(
&mut globbed
.iter()
Expand Down

0 comments on commit 2f237d9

Please sign in to comment.