summary refs log tree commit diff stats
path: root/src/git
diff options
context:
space:
mode:
authorSoniEx2 <endermoneymod@gmail.com>2021-09-04 22:50:46 -0300
committerSoniEx2 <endermoneymod@gmail.com>2021-09-04 22:50:46 -0300
commitc1048a75ce98198fe9e286389b219ad0b62c8f19 (patch)
tree19a75b8dc3b5196f218bb5b655e639f6efa4837f /src/git
parentd3b15a5d4f4c1b1f01117b0623ab4c8763e52ae4 (diff)
Use more typestate
Diffstat (limited to 'src/git')
-rw-r--r--src/git/tests.rs12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/git/tests.rs b/src/git/tests.rs
index ef6c763..16eeb93 100644
--- a/src/git/tests.rs
+++ b/src/git/tests.rs
@@ -129,7 +129,9 @@ mod low_level {
         // have to create a Git manually for this one. ah well. :(
         let git_clone = Git {
             path: clone.path().into(),
-            pending_branches: None,
+            inner: CacheRepo {
+                _non_exhaustive: (),
+            },
             sha256: false,
         };
         git_clone.cmd_clone_from(repo.path(), |args| {
@@ -173,7 +175,9 @@ mod privates {
         // have to create a Git manually for this one. ah well. :(
         let mut git_clone = Git {
             path: clone.path().into(),
-            pending_branches: Some(Default::default()),
+            inner: FetchRepo {
+                pending_branches: Default::default(),
+            },
             sha256: false,
         };
         git.fork(&mut git_clone).unwrap();
@@ -190,7 +194,9 @@ mod privates {
         // have to create a Git manually for this one. ah well. :(
         let mut git_clone = Git {
             path: clone.path().into(),
-            pending_branches: Some(Default::default()),
+            inner: FetchRepo {
+                pending_branches: Default::default(),
+            },
             sha256: false,
         };
         git.fork(&mut git_clone).unwrap();