History

conversions from Rc to arc for Handle (#301)

Sebastian Thiel committed 4 years ago

Commit c19331e1 parent 5f29c0f4 files · +80 −18Browse files

Showing the changes to git-worktree (1 of 4 files). Show all

Unified · Split

git-worktree/tests/worktree/index/checkout.rs+2−5
@@ -270,7 +270,7 @@ fn allow_or_disallow_symlinks() -> crate::Result { · 269 unmodified lines
270270 fn keep_going_collects_results() {
271271 let mut opts = opts_from_probe();
272272 opts.keep_going = true;
273− let mut count = AtomicUsize::default();
273+ let count = AtomicUsize::default();
274274 let (_source_tree, destination, _index, outcome) = checkout_index_in_tmp_dir_opts(
275275 opts,
276276 "make_mixed_without_submodules",
@@ -454,10 +454,7 @@ fn checkout_index_in_tmp_dir_opts( · 177 unmodified lines
454454 let source_tree = fixture_path(name);
455455 let git_dir = source_tree.join(".git");
456456 let mut index = git_index::File::at(git_dir.join("index"), Default::default())?;
457− let odb = git_odb::at(git_dir.join("objects"))?
458− .into_inner()
459− .into_arc()
460− .to_cache_arc();
457+ let odb = git_odb::at(git_dir.join("objects"))?.into_inner().into_arc()?;
461458 let destination = tempfile::tempdir_in(std::env::current_dir()?)?;
462459 prep_dest(destination.path())?;
463460