Skip to content

Commit 8679840

Browse files
authored
Rollup merge of rust-lang#128686 - onur-ozkan:unnecessary-type-cast, r=Kobzol
fix the invalid argument type It was obviously wrong..
2 parents 48e47a6 + ab690d3 commit 8679840

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/bootstrap/src/utils/helpers.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -536,8 +536,7 @@ pub fn get_closest_merge_base_commit(
536536

537537
let merge_base = get_git_merge_base(config, source_dir).unwrap_or_else(|_| "HEAD".into());
538538

539-
git.arg(Path::new("rev-list"));
540-
git.args([&format!("--author={author}"), "-n1", "--first-parent", &merge_base]);
539+
git.args(["rev-list", &format!("--author={author}"), "-n1", "--first-parent", &merge_base]);
541540

542541
if !target_paths.is_empty() {
543542
git.arg("--").args(target_paths);

0 commit comments

Comments
 (0)