diff options
author | SoniEx2 <endermoneymod@gmail.com> | 2021-09-04 22:50:46 -0300 |
---|---|---|
committer | SoniEx2 <endermoneymod@gmail.com> | 2021-09-04 22:50:46 -0300 |
commit | c1048a75ce98198fe9e286389b219ad0b62c8f19 (patch) | |
tree | 19a75b8dc3b5196f218bb5b655e639f6efa4837f /src/git | |
parent | d3b15a5d4f4c1b1f01117b0623ab4c8763e52ae4 (diff) |
Use more typestate
Diffstat (limited to 'src/git')
-rw-r--r-- | src/git/tests.rs | 12 |
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(); |