gitscope
← rgit / Diff · 56917a9 → 56917a9
Changes 56917a9..56917a9
Patch commit
diff --git a/src/git.rs b/src/git.rs
index d536727..97fe616 100644
--- a/src/git.rs
+++ b/src/git.rs
@@ -139,7 +139,7 @@ impl OpenRepository {
let mut tree_items = Vec::new();
- for item in tree.iter() {
+ for item in &tree {
let object = item
.to_object(&repo)
.context("Expected item in tree to be object but it wasn't")?;