Skip to content

Commit c601ad0

Browse files
committed
Update to rust master
1 parent f188fc2 commit c601ad0

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/commit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ mod tests {
247247
let sig = repo.signature().unwrap();
248248
let tree = repo.find_tree(commit.tree_id()).unwrap();
249249
let id = repo.commit(Some("HEAD"), &sig, &sig, "bar", &tree,
250-
[&commit]).unwrap();
250+
&[&commit]).unwrap();
251251
let head = repo.find_commit(id).unwrap();
252252

253253
let new_head = head.amend(Some("HEAD"), None, None, None,

src/index.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ mod tests {
550550
let id = repo.refname_to_id("HEAD").unwrap();
551551
let parent = repo.find_commit(id).unwrap();
552552
let commit = repo.commit(Some("HEAD"), &sig, &sig, "commit",
553-
&tree, [&parent]).unwrap();
553+
&tree, &[&parent]).unwrap();
554554
let obj = repo.find_object(commit, None).unwrap();
555555
repo.reset(&obj, ResetType::Hard, None, None).unwrap();
556556

src/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pub fn repo_init() -> (TempDir, Repository) {
1414
let tree = repo.find_tree(id).unwrap();
1515
let sig = repo.signature().unwrap();
1616
repo.commit(Some("HEAD"), &sig, &sig, "initial",
17-
&tree, []).unwrap();
17+
&tree, &[]).unwrap();
1818
}
1919
(td, repo)
2020
}

src/tree.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ mod tests {
251251
let parent = repo.find_commit(repo.head().unwrap().target()
252252
.unwrap()).unwrap();
253253
repo.commit(Some("HEAD"), &sig, &sig, "another commit",
254-
&tree, [&parent]).unwrap();
254+
&tree, &[&parent]).unwrap();
255255
}
256256
let head = repo.head().unwrap();
257257
let target = head.target().unwrap();

0 commit comments

Comments
 (0)