Rollup merge of #128686 - onur-ozkan:unnecessary-type-cast, r=Kobzol

fix the invalid argument type

It was obviously wrong..
This commit is contained in:
Matthias Krüger 2024-08-05 18:36:03 +02:00 committed by GitHub
commit 86798401df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -536,8 +536,7 @@ pub fn get_closest_merge_base_commit(
let merge_base = get_git_merge_base(config, source_dir).unwrap_or_else(|_| "HEAD".into());
git.arg(Path::new("rev-list"));
git.args([&format!("--author={author}"), "-n1", "--first-parent", &merge_base]);
git.args(["rev-list", &format!("--author={author}"), "-n1", "--first-parent", &merge_base]);
if !target_paths.is_empty() {
git.arg("--").args(target_paths);