refactor: change parameter type from PathBuf to Path in virtual_hunks_by_filepath function

This commit is contained in:
Kiril Videlov 2023-12-03 18:12:20 +01:00 committed by Kiril Videlov
parent 331302ec9c
commit 2246bb4805

View File

@ -1440,7 +1440,7 @@ fn diff_hash(diff: &str) -> String {
}
pub fn virtual_hunks_by_filepath(
project_path: &path::PathBuf,
project_path: &path::Path,
diff: &HashMap<path::PathBuf, Vec<diff::Hunk>>,
) -> HashMap<path::PathBuf, Vec<VirtualBranchHunk>> {
let mut mtimes: HashMap<path::PathBuf, u128> = HashMap::new();