diff --git a/helix-vcs/src/lib.rs b/helix-vcs/src/lib.rs index d9a33f38..2a4c1bb7 100644 --- a/helix-vcs/src/lib.rs +++ b/helix-vcs/src/lib.rs @@ -200,7 +200,7 @@ impl DiffProviderRegistry { Ok(repo) => { let key = Arc::from(repo_path); self.providers - .insert(Arc::clone(&key), DiffProvider::Git(repo)); + .insert(Arc::clone(&key), DiffProvider::Git(Box::new(repo))); Ok((key, PossibleDiffProvider::Git)) } Err(err) => Err(err), @@ -215,7 +215,7 @@ impl DiffProviderRegistry { #[derive(Clone)] pub enum DiffProvider { #[cfg(feature = "git")] - Git(gix::ThreadSafeRepository), + Git(Box), } #[cfg_attr(not(feature = "git"), allow(unused))]