Skip to content

Commit 89b7a50

Browse files
committed
clippy happy
1 parent fe089fc commit 89b7a50

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

rust/posthog-cli/tests/sourcemap.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
use posthog_cli::utils::sourcemaps::read_pairs;
2-
use std::{fs, path::PathBuf};
2+
use std::{
3+
fs,
4+
path::{Path, PathBuf},
5+
};
36
use test_log::test;
47

58
fn get_case_path(relative_path: &str) -> PathBuf {
@@ -9,7 +12,7 @@ fn get_case_path(relative_path: &str) -> PathBuf {
912
.expect("Failed to canonicalize path")
1013
}
1114

12-
fn assert_file_eq(base_path: &PathBuf, path: &str, actual: &str) {
15+
fn assert_file_eq(base_path: &Path, path: &str, actual: &str) {
1316
let expected = fs::read_to_string(base_path.join(path)).expect("Failed to read expected file");
1417
assert_eq!(expected, actual);
1518
}

0 commit comments

Comments
 (0)