summaryrefslogtreecommitdiff
path: root/crates/vcs_data/src/data/local/local_files.rs
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2025-11-19 17:22:37 +0800
committer魏曹先生 <1992414357@qq.com>2025-11-19 17:22:37 +0800
commit54bdb27af49788ca4562a72510f3b81278cb133f (patch)
tree5e564a7991bd8758b321cb1867fbe2f78e1deeeb /crates/vcs_data/src/data/local/local_files.rs
parent4e627f31ba975c8449049bc74bb24e4ca112b65c (diff)
Change function signatures to use references
Diffstat (limited to 'crates/vcs_data/src/data/local/local_files.rs')
-rw-r--r--crates/vcs_data/src/data/local/local_files.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/crates/vcs_data/src/data/local/local_files.rs b/crates/vcs_data/src/data/local/local_files.rs
index 1599e34..8444f97 100644
--- a/crates/vcs_data/src/data/local/local_files.rs
+++ b/crates/vcs_data/src/data/local/local_files.rs
@@ -25,7 +25,10 @@ impl RelativeFiles {
}
/// Read the relative paths within the project from the input file list
-pub async fn get_relative_paths(local_path: PathBuf, paths: Vec<PathBuf>) -> Option<RelativeFiles> {
+pub async fn get_relative_paths(
+ local_path: &PathBuf,
+ paths: &Vec<PathBuf>,
+) -> Option<RelativeFiles> {
// Get Relative Paths
let Ok(paths) = format_input_paths_and_ignore_outside_paths(&local_path, &paths).await else {
return None;