Skip to content

Commit

Permalink
get_svg_input_paths accepts Path-like parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
flother committed Oct 9, 2023
1 parent a4b1323 commit eafd274
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub fn get_svg_input_paths<P: AsRef<Path>>(path: P, recursive: bool) -> Vec<Path
let path_buf = entry.path();

if recursive && path_buf.is_dir() {
Some(get_svg_input_paths(path_buf.as_path(), recursive))
Some(get_svg_input_paths(path_buf, recursive))
} else if is_useful_input(&entry) {
Some(vec![path_buf])
} else {
Expand Down

0 comments on commit eafd274

Please sign in to comment.