We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea244b8 commit e803cb3Copy full SHA for e803cb3
asyncgit/src/sync/commit_files.rs
@@ -68,7 +68,7 @@ pub(crate) fn get_commit_diff(
68
None
69
};
70
71
- let mut opt = pathspec.clone().map(|p| {
+ let mut opt = pathspec.as_ref().map(|p| {
72
let mut opts = DiffOptions::new();
73
opts.pathspec(p);
74
opts.show_binary(true);
@@ -87,7 +87,7 @@ pub(crate) fn get_commit_diff(
87
return get_commit_diff(
88
repo,
89
CommitId::new(untracked_commit),
90
- (&pathspec).clone(),
+ pathspec,
91
);
92
}
93
0 commit comments